Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Vendor modifier - PSTL Error

Posted on by Microsoft Employee

Invalid column name Series

PSTL Version 11.0.14 / GP 2010

stored procedure smVendorChange1 returned the following results:

DBMS: 207,  Microsoft Dynamics GP: 0

DexSQL

BEGIN DECLARE @stored_proc_name char(23) DECLARE @retstat int DECLARE @param3 int set nocount on SELECT @stored_proc_name = 'PDT.dbo.smVendorChange1' EXEC @retstat = @stored_proc_name 'OLDVENDORID', 'NEWVENDORID', @param3 OUT SELECT @retstat, @param3 set nocount on END /* /*  Date: 10/01/2013  Time: 22:19:16 SQLSTATE:(S0022) Native Err:(207) stmt(14123984):*/ [Microsoft][SQL Server Native Client 10.0][SQL Server]Invalid column name 'SERIES'.*/

 

Thanks

Sanjay

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Vendor modifier - PSTL Error

    I have the same error, stored procedure smItemChange1, what was the table you fixed when you got this error? Thanks

  • cyap Profile Picture
    cyap 15 on at
    RE: Vendor modifier - PSTL Error

    Fixed a similar error message "The stored procedure smItemChange1 returned the following results: DBMS: 207, Microsoft Dynamics GP: 0." when running the PSTL Customer Name Modifier by rebuilding procs from the Professional Services Tools Library main window.  PSTL v 12.0.1644, GP 2013 12.00.1745 (R2).

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Vendor modifier - PSTL Error

    Turned out to be an interesting project.  Here is how resolved the problem.

    1.  Decrypt stored procedure smVendorChange1

        jongurgul.com/.../sql-object-decryption

    2.  Beautify tsql output

        www.freeformatter.com/sql-formatter.html

    3.  Find word "SERIES"  smVendorChange1 stored procedure

        (I am selecting only the section where the issue was identified)

        select

       'update ['+o.name+'] set CustomerVendor_ID =' + rtrim(@cEndVendor) + ' where SERIES = 4 and CustomerVendor_ID = ' + rtrim(@cStartVendor)  

        from

          sysobjects o,

          syscolumns c

       where

          o.id = c.id

          and o.type = 'U'

          and c.name = 'CustomerVendor_ID'

          and o.name <> 'EDCVAT26'

    5. Find Tables being updated by smVendorChange1

       select  *  

       from

         sysobjects o,

         syscolumns c

       where

         o.id = c.id

         and o.type = 'U'

         and c.name = 'CustomerVendor_ID'

         and o.name <> 'EDCVAT26'

    6. Find the table which does not have the field series

    select  o.name  from  sysobjects o,  syscolumns c    

    Where  o.id = c.id  and o.type = 'U'   and c.name = 'CustomerVendor_ID'   and o.name <> 'EDCVAT26'

    AND O.NAME NOT IN (  select  TABLE_NAME  from [INFORMATION_SCHEMA].[COLUMNS]         where

    table_name in ( select  o.name  from  sysobjects o, syscolumns c  where  o.id = c.id  and o.type = 'U'  and c.name = 'CustomerVendor_ID'   and o.name   <>  'EDCVAT26'  )  AND Column_name = 'SERIES'   )

    Returned VTX_TXAUDIT

    7. Resolution  - VTX_TXAUDIT had no record.  For the purpose of getting the vendor id changed   updated  the field CustomerVendor_ID  to CustomerVendor_ID1 so that PSTL vendor modifier does not check this table.  Completed the modifier project and reverted back the field name.

    Cheers!

    Sanjay

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans