-
An item with the same key has already been added.
During the synchronization to BC16 cu03 got this error.
-
How do i correct Invemtory valuation report that shows item with 0 quantity but value
Good day everyone, I currently work as an ERP Analyst and we use NAV 2017.Recently, when we run our inventory valuation report, we discovered there are some items that have 0 quantity but with value Please note: 1.Our Average Cost Calc Type in Inventory Setup is set to Item. 2.When we run the inventory valuation, we run…
-
Dynamics NAV 2017. How to create Excel via Excel Buffer with ASCII Characters
Hello mates! I have problem with ASCII symbol transfer from Dynamics NAV to Excel, creating by C\AL using Excel Buffer. There are Table with text type field "Export Mark DataMatrix", it is a string which include ASCII symbol (Code 29, Group Separator): When I try to generate Excel by Excel Buffer I have following result:…
-
Why is permissions on TableData not set, when user is SUPER?
Hi experts, I use Business Central version 13, CU 11, build 35820 on-premise. My user has the permission set "SUPER" on all companies. No users have any user groups. I have made a button that should import lines into "Bank Account Reconciliations". When I try to do that, I get the error: "You do not have the following…
-
Simple Lot No. check
Hello, I need an idea how I could implement the following with around 15 to 20 workplaces. Every pallet to be processed has a batch sticker and when this pallet is processed, this batch should be checked or written to a table at the entrance to the production line. Now I don't want to set up 15 additional computers to do…
-
Routing by locations in regenerative planning
Our process is so that the purchases are planned and performed on one location and production - on another. Is there a standard setup to plan purchases and production this way and route the components through the transfer orders to the production location?
-
Hyphen in Json vs. API PAGE BC13
Hi, I'm trying to create a webhook to recieve events. Json looks like this: API Page like this: detail-type properties: Response from postman: If I change the - (Hyphen) to _ (Underscore) in both Json and API page, it works perfectly. Does anyone know if there is a way to use Hyphen, since this is not a Json I can control?…
-
BC16 webservices / API DeepInsert
Hi, I'm working on a webservice / api which will is running on a BC16 OnPrem environment. It has been working out great so far, but I experience a lot of issues, when trying to insert data with header and lines. I have created my example code on https://github.com/kefdk/bc16-api (yes, I have been reading on this blog-post:…
-
Deep insert in API page problems
Hi, I'm having some trouble using API in my cloud BC. I have it working in my local docker container, but the syntax seems a bit different against my cloud BC. This path seems to work fine. https://api.businesscentral.dynamics.com/v1.0/{{tenant}}/{{environment}}/ODataV4/Company('{{company}}')/salesReturnOrder However, when…
-
Business Central Administration Multitenant erro
Hi all, When trying to manage a multitenant installation with te Business Central Administration tool a get the error: "Value cannot be null. Parameter name: objectToValidate" and the mmc crashes. I've reinstalled the everything but still the error occurs. Does anyone know what the problem is and how to solve it?
-
Update value in dictionary
Hi Is it possible to iterate through a dotnet Dictionary and update the value? If so could you please share with me a code example in C/AL Thanks
-
Implementing OAuth authentication using OAuth 2.0 standard features from Business Central SaaS
Hello everybody, I am currently trying to integrate a 3rd party service into Business Central SaaS and I am forced to use OAuth 2.0 authentication for that. I see there's some stuff already available through the base application, for instance table/page "OAuth 2.0 Setup" and codeunit "OAuth 2.0 Mgt.". Basically this does…
-
How to save file to user desktop insted of TEMPORARYPATH.
Hi All, we have issue with users that they are not saving the files/documents immediately after generating. For example: User generates "Inventory Valuation Report" into excel and just open the file instead of saving file. After some time they will shutdown the system and next day or some days later they will ask us for…
-
Is there any way to add item in option drop down list by code
Hi All: Is there any way to add item in option drop down list by code? I create an array and I want to bind these array items to drop down list object as option string. Is it possible to implement?
-
TestTableRelation Obsolete
As TestTableRelation is becoming obsolete, do you know what we are supposed to do instead if we don't want to test table relations? "message": "'TestTableRelation' is being deprecated in the versions: '1.0' or greater. This warning will become an error in a future release.", AL0667
-
How could I copy record to template recordref
Hi All: I try to open an temp recordref and assign value to field as the code: recRF.OPEN(18,TRUE); recRF.SETTABLE(Customer); recRF.FINDFIRST; fldRef := recRF.FIELD(3); fldRef.VALUE:='bbb'; recRF.MODIFY; recRF.CLOSE; When i use the command recRF.OPEN(18,False) , it will update the value to Customer . But if I modify…
-
NAV 2013 R2 - Prod. Order with Capacity Ledger Entry but no Output
Good morning – I wonder if you could help me with a process question – we have a Production Order which was ultimately requested to be cancelled, so we need to either delete it or change its status to Finished. The issue is, one of the subcontract purchase orders was received, so it created a Capacity Ledger Entry, but no…
-
Power BI Query Web Service
I have created a Query to export the Dimension Values for Power BI. The 'Name' column however is coming back empty with the caption "Name_FilterOnly" instead of 'Name'. Can anyone explain why this is and how to display it correctly? query 50100 "TDimensions" { //QueryType = Normal; elements { dataitem(DimensionValue;…
-
PDF Viewer
Hello. I'm looking for a way to show PDF in the RTC Nav. Probably inside an Addin. The goal is to have a preview in a factbox. Have you any ideas? Thanks
-
Sending Email through NAV
Hi everyone, (not quite sure this is the correct category though,) I have a custom functionality for sending emails to clients which was working as intended. The issue is that i added a bitly URL to use some web hooks and consume a web service in the html template for the emails. More specific in codeunit 400 at the line…
-
Report creation using arrays
I have created a report which shows me the data for days vertically according to the range of dates that is established in the request page. However, I would like this report to be displayed horizontally, that is, each day is a column. for example: employee code | Department | hourly wage | Day 1 | Day 2 | Day 3 | Day4 ...…
-
Testcodeunits AL: TableLocks when sugessting Reminder Lines
Hello everybody. As the title suggests, I have a problem with table locks during my small test application. I have set up a test codeunit in BC16, which should enter a customer on the reminder page (Page434, Table295) and then suggest lines by the action "Suggest Reminder Lines". This is a process that works very well when…
-
One Field is editable when I am in View Mode of page
Hi Friends, One field is editable when I am in View Mode of page, can anyone help how can I do it to behave like nav standards (the field is a variable)
-
Is it possible to create a RDLC layout with a picture besides the item extended text?
I would like to know if it's possible to display the image of an item besides the item extended text (see example below) in a RDLC layout?
-
Error when compiling codeunit 9010 (after upgrade from NAV2017 to BC13)
After an upgrade from NAV2017 to BC13 I get the error message below after compiling codeunit 9010, does anyone have any idea how I can fix this? (error message is in Dutch saying 'The found assembly manifest definition does not match the assembly reference')
-
Testcodeunits: Strange behavior when executing an action through invoke
As you can already see from the title, I noticed a strange behavior when executing page actions on a testpage through invoke(). I am working on BC16. I created a "Sales Header" in my codeunit and added a few "Sales line"'s. Then I wanted to load the page by a TestPage object and click the action "Post." Here is the code:…
-
NavContainerHelper modifying customsettings.config
Hi all, I want to override the web services authentication method in a service tier. I know the command that should be placed in CustomSettings.config: <add key="WebServicesUseNTLMAuthentication" value="true"></add> However, our development environment is Docker, and the containers are built using NavContainerhelper. Does…
-
How this work
Microsoft Dynamics 365 Business Central Version 14.0.40464 Cu 90 - "Purch.-Post" has code ItemApplnEntry.SETRANGE("Outbound Item Entry No.",TransRcptLine."Item Rcpt. Entry No."); ItemApplnEntry.SETFILTER("Item Ledger Entry No.",'<>%1',TransRcptLine."Item Rcpt. Entry No."); ItemApplnEntry.SETRANGE("Cost Application",TRUE);…
-
Use variables in flowfield calcformula
Hello new here and new to AL. I was wondering. I have 3 fields in a table: field(1; Code; Code[20]) { Caption = 'Code'; DataClassification = ToBeClassified; TableRelation = if ("Status Object" = const(Customer)) Customer else if ("Status Object" = const(Item)) Item else if ("Status Object" = const(Vendor)) Vendor; }…
-
Is Business Central enough
We have a Customer running NAV 2016 today and we are discussing a fresh start in Business Central. One question that has come up is of Business Central is enough. In 5 years time they are planning to handle 50-100.000 sales orders a day. Any thoughts from You! who has ran large installations WorldShop be appreciated.