Rank: Member
Joined: 8/28/2009(UTC) Posts: 29
|
We recently upgraded from BV2004 to BV5.6. We want to generate mailing labels for all unshipped, paid orders.
The "ShippingAddress" field in bvc_Order contains a bunch of tags for the entire address: firstname, lastname, city, etc.
Wondering if there's a stored procedure that pulls each item out of that field so I can insert the items into a spreadsheet for a mail merge?
Thanks.
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
There was a post here in the forum with a query that would extract the address. I can't find it now, but you may have better luck. |
|
|
|
|
Rank: Member
Joined: 9/20/2006(UTC) Posts: 92
|
|
|
|
|
Rank: Member
Joined: 8/28/2009(UTC) Posts: 29
|
Thank you, thank you, thank you. I searched for "shipping address", "ship address", and "xml" and couldn't find anything in the forums.
|
|
|
|
Rank: Member
Joined: 8/28/2009(UTC) Posts: 29
|
I spoke too soon, I followed the directions, even fixed the names of the fields. I receive this error:
The XML parse error 0xc00ce556 occurred on line number 1, near the XML text "f3af14e36845</Bvin><NickName /><FirstName>t</FirstName><MiddleInitial /><LastName>t</LastName><Company>test</Company><Line1>t</Line1><Line2 /><Line3 /><City>t</City><RegionName>DC</RegionName><RegionBvin>16f5837c-7516-4c91-b592-09518f75f843</RegionBvin><PostalCode>t</PostalCode><CountryName>United States</CountryName><CountryBvin>bf7389a2-9b21-4d33-b276-23c9c18ea0c0</CountryBvin><Phone>222-222-2222</Phone><Fax /><WebSiteUrl /><CountyName /><CountyBvin /><UserBvin /><Residential>false</Residential><LastUpdated>0001-01-01T00:00:00</LastUpdated></Address>". Msg 6602, Level 16, State 2, Procedure sp_xml_preparedocument, Line 1 The error description is 'Invalid at the top level of the document.'. Msg 8179, Level 16, State 5, Procedure bvc_AddressXml_s, Line 17 Could not find prepared statement with handle 0.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.