|
Home > Archive > Business Desk > February 2004 > Importing Profile
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]
|
|
|
| When I import a profile through Commerce Manager everything is fine.
On importing the same XML using the following VB code then I get the
following error in BizDesk: "A connection with the data store could
not be established. Please contact your administrator"
The VB Code:-
Dim xmlDoc
Dim sConnstr As String
Dim oBizDataAdmin As Object
Dim x As MessageBox
'sConnstr = "The actual connection string;"
oBizDataAdmin = CreateObject("Commerce.BusinessDataAdmin2")
oBizDataAdmin.Connect(sConnstr)
xmlDoc = CreateObject("MSXML2.DOMDocument")
xmlDoc.load("C:\Edubase Phase 2\Profiles\Profile20040106.xml")
Try
oBizDataAdmin.ImportCatalogs(xmlDoc.xml)
Catch ex As Exception
x.Show(ex.Message)
End Try
oBizDataAdmin = Nothing
---
Any help would be gratefully appreciated.
Regards,
Mike.
| |
|
| "Willie Chiu" <williechiu@hotmail.com> wrote in message news:<015f01c3d48e$f1fed480$a501280a@phx.gbl>...[color=blue]
> Mike,
> which version of msxml is loaded on your machine?
> Bizdesk code uses "MSXML.DOMDocument". Which line of
> code bombs out?
>
> Willie
> everything is fine.
> then I get the
> store could
> ("Commerce.BusinessDataAdmin2")
> \Profiles\Profile20040106.xml")
Willie,
Thanks for the rapid reply. I have version 2.0.0.0 on my machine.
Regards,
Mike.
| |
| Willie Chiu 2004-02-07, 9:38 am |
| Mike,
I forgot to ask, have you tested the connection string?
and also, i'm not sure if MSXML2.DOMDocument will work or
not. You might want to change that to use
MSXML.DOMDocument.
Willie
>-----Original Message-----
>"Willie Chiu" <williechiu@hotmail.com> wrote in message
news:<015f01c3d48e$f1fed480$a501280a@phx.gbl>...
data[color=blue]
>
>
>Willie,
>
>Thanks for the rapid reply. I have version 2.0.0.0 on my
machine.
>
>Regards,
>Mike.
>.
>
|
|
|
|
|