I believe there is no such function but if format doesn't match ImportFile will return -12. See PB help of ImportFile for more return codes.
Regards,
Sandeep
Main Topics
Browse All TopicsHi,
I am using the ImportFile function to imprt data satored in an XML file,
as below.
li_error = dw_1.ImportFile(XML!,"C:\t
Are there any functions I can use to ensure that the structure
of the xml file I am importing matches that of the xml tempate
I have set up in the data import setting of the dataobject.
Thanks
DL
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thanks Sandeep.
I thought that might be the case. I am trying to capture the error before the default Powerbuilder error message displays
li_error = dw_1.ImportFile(XML!,"C:\t
I can see the error value in li_error, but the PB error message fires before I can supply a more user friendly error message. Is there anyway that I can prevent PB displaying the error.
DL
Business Accounts
Answer for Membership
by: bl00teredPosted on 2009-05-01 at 06:51:35ID: 24279293
Hi,
est\Temp.x ml")
I am using the ImportFile function to imprt data stored in an XML file,
as below.
li_error = dw_1.ImportFile(XML!,"C:\t
Are there any functions I can use to ensure that the structure
of the xml file I am importing matches that of the xml template
I have set up in the data import setting of the dataobject.
Thanks
DL