---
title: "#service-layer articles | Hashnode"
description: "Explore 4 articles tagged #service-layer on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/service-layer"
---

Tag

# #service-layer

4 posts · 0 followers

[Zain Abbas](https://hashnode.com/@kodenova) · [3d ago](https://hashnode.com/posts/docnum-is-what-users-see-it-is-not-a-stable-key-for-a-sap-business-one-integration/6af88271202f855af016df7d)

### [DocNum is what users see. It is not a stable key for a SAP Business One integration](https://kodenova.hashnode.dev/docnum-is-what-users-see-it-is-not-a-stable-key-for-a-sap-business-one-integration?utm_source=hashnode&utm_medium=feed)

Store DocEntry, and still look up the shop or portal id before every retry.

2 min read · [kodenova.hashnode.dev](https://kodenova.hashnode.dev/docnum-is-what-users-see-it-is-not-a-stable-key-for-a-sap-business-one-integration?utm_source=hashnode&utm_medium=feed)

[Zain Abbas](https://hashnode.com/@kodenova) · [3d ago](https://hashnode.com/posts/a-service-layer-batch-is-not-one-document-check-each-source-id-before-you-retry-the-set/6af8813f3ed88d447a560f67)

### [A Service Layer batch is not one document. Check each source id before you retry the set](https://kodenova.hashnode.dev/a-service-layer-batch-is-not-one-document-check-each-source-id-before-you-retry-the-set?utm_source=hashnode&utm_medium=feed)

If one sales order in a $batch fails, the others may already exist. A full retry will duplicate the ones that succeeded.

2 min read · [kodenova.hashnode.dev](https://kodenova.hashnode.dev/a-service-layer-batch-is-not-one-document-check-each-source-id-before-you-retry-the-set?utm_source=hashnode&utm_medium=feed)

[Zain Abbas](https://hashnode.com/@kodenova) · [3d ago](https://hashnode.com/posts/a-customer-portal-should-never-insert-a-sales-order-into-ordr/6af86d40fa1b5006edb700af)

### [A customer portal should never INSERT a sales order into ORDR](https://kodenova.hashnode.dev/a-customer-portal-should-never-insert-a-sales-order-into-ordr?utm_source=hashnode&utm_medium=feed)

Create the document through the Service Layer or the DI API so SAP Business One validations, tax and permissions still run.

1 min read · [kodenova.hashnode.dev](https://kodenova.hashnode.dev/a-customer-portal-should-never-insert-a-sales-order-into-ordr?utm_source=hashnode&utm_medium=feed)

[Zain Abbas](https://hashnode.com/@kodenova) · [3d ago](https://hashnode.com/posts/service-layer-error-5002-is-a-session-problem-not-a-reason-to-post-the-sales-order-again/6af8689f5a33cb627f8fd98c)

### [Service Layer error -5002 is a session problem, not a reason to post the sales order again](https://kodenova.hashnode.dev/service-layer-error-5002-is-a-session-problem-not-a-reason-to-post-the-sales-order-again?utm_source=hashnode&utm_medium=feed)

Log in once, reuse the cookie, and search for the source id before you retry.

2 min read · [kodenova.hashnode.dev](https://kodenova.hashnode.dev/service-layer-error-5002-is-a-session-problem-not-a-reason-to-post-the-sales-order-again?utm_source=hashnode&utm_medium=feed)
