Posting Transaction using sData - " is not on file.Š"

SOLVED

I'm attempting to post a Transaction using sData to the URL of our Sage 100 server and I keep getting the error: " is not on file.Š". This happens only when I have a valid AccountKey in the transaction details section. If I remove the account key I get "The Account Number is required" which is what I would expect to get. If I enter an invalid account key I get "00000005  is not on file" which again makes sense. 

This is the sData payload I'm attempting to post. Is there something I'm missing in the payload? 


<sdata:payload>
<GL_TransactionJournalHeader sdata:uri="/sdata/MasApp/MasContract/TS6/GL_TransactionJournalHeaderSPECIAL()" xmlns="">
<PostingDate>2018-02-16</PostingDate>
<SourceJournal>BK</SourceJournal>
<TransactionType>D</TransactionType>
<Offset>C</Offset>
<OffsetAccountKey>000000034</OffsetAccountKey>
<JournalTotal>5.0000</JournalTotal>
<GL_TransactionJournalDetail>
<Date>2018-02-16</Date>
<PostingComment>Posting Comment</PostingComment>
<CreditAmount>0.0000</CreditAmount>
<DebitAmount>5.0000</DebitAmount>
<AccountKey>000000005</AccountKey>
</GL_TransactionJournalDetail>
</GL_TransactionJournalHeader>
</sdata:payload>

Parents Reply Children