BizTalk Server General - Re: BTS2002 validate file - problem solved

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > September 2005 > Re: BTS2002 validate file - problem solved





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: BTS2002 validate file - problem solved
Mike

2005-09-09, 7:49 am


Hi,

I've found a way. I use a script functiod for each check, using "On Error
Goto 0" and if needed raising a custom error, for example "Total amount is
not correct" etc.

I've mapped all these functiods to a single one that just sets a hardcoded
value in the invoice header. The reason for this is that apparently you need
to map the functoid to something, or the validation won't occur.

Thanks anyway,

Mikael




"Mike" wrote:
[vbcol=seagreen]
>
> Thanks,
>
> I know that a preproc or aic would be a possible, bot not an ideal solution,
> especially not for me that have developed a generic preproc for handling all
> files (archiving, sequence control, zip, unzip, encrypt, sorting, grouping,
> search-replace, database log, error handling, splitting, etc etc) and would
> like to avoid interface specific code in that preproc.
>
> Wouldn't it be possible to make a workaround in the mapping. I've tried to
> do a check in a scripting functiod, and if theres a difference on purpose
> make a division by zero just to make the map fail. That didn't work out
> (although I just got the idea to try "on error goto 0", maybe that works.)
>
> If not, do you, or anybody else, have a better idea?
>
> Thanks,
>
> Mikael
>
>
>
> "Jan Eliasen" wrote:
>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com