DXL Importer problem "Syntax Error"

We have 50 odd script libraries and we merge them all into one script library using DXL importer for one of our databases.

While using DXL “importer.process” we get “DXL Importer failed” error. The log says “Syntax error”. However, saving the script lib individually does not throw any error.

What can be the reason? Searched on various topics but was not able to find any solution. In some topics problems with “%REM” has been mentioned. Can this %REM cause the failure.

Subject: DXL Importer problem “Syntax Error”

Is the DXL properly formed?

I tend to dump the dxl to a file and open in firefox to check it if there’s an issue.

Also use error handling the notesdxlimporter.log method to see if it gives any more info.

hth

Dan

Subject: RE: DXL Importer problem “Syntax Error”

Thanks for the response. I will try creating the file and using it with firefox.

Meanwhile I have already used dxlimporter.log It shows the only the text “Syntax Error” within the various tags. No other information is shown. Does it show more info? Am I missing something.

Below is the code

Dim importer As NotesDXLImporter

Set importer = session.CreateDXLImporter(stream, db)

importer.ReplaceDBProperties = True

importer.ReplicaRequiredForReplaceOrUpdate = False

importer.ACLImportOption = DXLIMPORTOPTION_REPLACE_ELSE_IGNORE

importer.DesignImportOption = DXLIMPORTOPTION_REPLACE_ELSE_CREATE

Importer.UnknownTokenLogOption =DXLLOGOPTION_ERROR



Call importer.Process	

the error comes at the last line.

Subject: RE: DXL Importer problem “Syntax Error”

It’s probably worth testing out the DXL - I would reckon is badly formed in some way…

Subject: RE: DXL Importer problem “Syntax Error”

Solved !!!

The new script lib created was having “Option declare”. However in one of the script libraries the option was not present and some variables were directly used. Hence the problem.

Sorted out. Thanks for the help !