cancel
Showing results for 
Search instead for 
Did you mean: 

Is this a B1iF setup issue? DI Error: (-2028) In "BP Code", enter vendor code

mclay
Explorer
0 Kudos

I'm trying to connect to B1 DI using Integtration Framework v1.0, HTTP Restful call.

What vendor code does this error refer to?

DI Error: (-2028) In "BP Code", enter vendor code -The di call #1 did fail.</font>

Accepted Solutions (0)

Answers (2)

Answers (2)

Johan_H
Active Contributor

Hi Maria,

The error message suggests that you are sending a BP code (CardCode) together with an inappropriate BP type (CardType). I.e. a customer code with CardType 'S', or vice versa. Alternatively you may be omitting the CardType, in which case the system for some reason uses 'S' as the default.

Regards,

Johan

n007praveen71
Participant
0 Kudos

Hello there , i have hardcoded my CardCode in a B1 to B1 A/R to A/P invoice scenario and also tried giving CardType as well but i still get an error as Error: (-2028) In "BP Code", enter vendor code -The di call #1 did fail.

please help me out , thank you

here is my coding in the final atom:

<BOM>

<BO>

<AdmInfo>

<Object>18</Object>

<Version>2</Version>

</AdmInfo>

<OINV>

<row>

<DocEntry> <xsl:value-of select="$msg/BOM/BO/OINV/row/DocEntry"></xsl:value-of> </DocEntry>

<DocNum> <xsl:value-of select="$msg/BOM/BO/OINV/row/DocNum"></xsl:value-of> </DocNum>

<DocType> <xsl:value-of select="$msg/BOM/BO/OINV/row/DocType"></xsl:value-of> </DocType>

<Series>95</Series>

<CardCode>0027</CardCode>

<CardType>S</CardType>

<DocDate> <xsl:value-of select="$msg/BOM/BO/OINV/row/DocDate"></xsl:value-of> </DocDate>

<DocDueDate> <xsl:value-of select="$msg/BOM/BO/OINV/row/DocDueDate"></xsl:value-of> </DocDueDate>

<DocTotal> <xsl:value-of select="$msg/BOM/BO/OINV/row/DocTotal"></xsl:value-of> </DocTotal>

<DocRate> <xsl:value-of select="$msg/BOM/BO/OINV/row/DocRate"></xsl:value-of> </DocRate>

<Ref1> <xsl:value-of select="$msg/BOM/BO/OINV/row/Ref1"></xsl:value-of> </Ref1>

<DocTime> <xsl:value-of select="$msg/BOM/BO/OINV/row/DocTime"></xsl:value-of> </DocTime>

<CntctCode> <xsl:value-of select="$msg/BOM/BO/OINV/row/CntctCode"></xsl:value-of> </CntctCode>

<TaxDate> <xsl:value-of select="$msg/BOM/BO/OINV/row/TaxDate"></xsl:value-of> </TaxDate>

<Comments> <xsl:value-of select="$msg/BOM/BO/OINV/row/Comments"></xsl:value-of> </Comments>

<U_GrpNm> <xsl:value-of select="$msg/BOM/BO/OINV/row/U_GrpNm"></xsl:value-of> </U_GrpNm>

<BPLId>0</BPLId>

<DocumentsOwner><xsl:value-of select="$msg/BOM/BO/OINV/row/DocumentsOwner"></xsl:value-of></DocumentsOwner>

</row>

</OINV>

<INV1>

<xsl:for-each select="$msg/BOM/BO/INV1/row">

<row>

<ItemCode> <xsl:value-of select="ItemCode"></xsl:value-of> </ItemCode>

<Quantity> <xsl:value-of select="Quantity"></xsl:value-of> </Quantity>

<Price> <xsl:value-of select="Price"></xsl:value-of> </Price>

<UnitPrice> <xsl:value-of select="UnitPrice"></xsl:value-of> </UnitPrice>

<OcrCode> <xsl:value-of select="OcrCode"></xsl:value-of> </OcrCode>

<MeasureUnit> <xsl:value-of select="MeasureUnit"></xsl:value-of> </MeasureUnit>

<Currency> <xsl:value-of select="Currency"></xsl:value-of> </Currency>

<LineNum> <xsl:value-of select="LineNum"></xsl:value-of> </LineNum>

<TaxCode><xsl:value-of select="TaxCode"></xsl:value-of></TaxCode>

<SlpCode><xsl:value-of select="SlpCode"></xsl:value-of></SlpCode>

</row>

</xsl:for-each>

</INV1>

</BO>

</BOM>

HuanYang
Employee
Employee
0 Kudos

The Error is from DI API
Please double check the payload

For example:

Invoices, 13, OINV

PurchaseInvoices, 18, OPCH

<?xml version="1.0" encoding="utf-8"?>
<BOM>
<BO>
<AdmInfo><Object>18</Object><Version>2</Version></AdmInfo>
<Documents>
<row>
<DocDate>string</DocDate><DocDueDate>string</DocDueDate><CardCode>string</CardCode><NumAtCard>string</NumAtCard><Comments>string</Comments><TaxDate>string</TaxDate>
</row>
</Documents>
<Document_Lines>
<row>...</row>
<row>...</row>
</Document_Lines>