Quantcast
Channel: Dynamics 365 Business Central/NAV User Group
Viewing all 11285 articles
Browse latest View live

Forum Post: RE: Table Relation with multiple filters

$
0
0
There is no specific table to store filters, this is rather something specific for the functionality you are developing.If it's a filter on item categories, probably you could extend the Inventory Setup table. I would maybe choose a different approach - add a Boolean field to the Item Category table and show only those categories where this field is True.

Forum Post: RE: Update Factbox when changing record via Next or Previous Button

$
0
0
This control is located on the factbox, and linked to the OnAfterRecord of the factbox page, not the Customer Card, correct? What is the source table of the factbox and its SubPageLink?

Forum Post: RE: Update Factbox when changing record via Next or Previous Button

$
0
0
Hey Alexander, My control was added to the FactBoxes area of the Customer Card Page. addfirst(FactBoxes) { part(WeatherCardPart; WeatherCardPart) { SubPageLink = "No." = field ("No."); Caption = 'Current Weather'; } } The SubPageL ink is pointing to the "No." of the record (customer record?) My CardPart that was added to the FactBox has the Customer as it's source table... page 50007 WeatherCardPart { PageType = CardPart; SourceTable = Customer; Thanks Yann

Blog Post: Ways You Are Sabotaging Your ERP Implementation. Going Parallel.

$
0
0
Overview A continuation of an article published last time . This is another one of the biggest causes of the owners/management causing the demise of their own ERP projects. Going Parallel Most proponents will state that going parallel is the safest way to ensure that if the new system doesn’t work, you can safely go back to the old system and not have any loss of data. This sounds really good on paper, it’s actually abominable in practice! Here are a couple of reasons why: Not enough time in the work day for the user to do twice the work. Imagine your work day, now do it twice with the same amount of time. Notwithstanding the time restriction, you’ll also be bored as out of your mind. Twice. The process is different from the new system vs the old system. When you implement a new system, processes will change. Keeping 2 separate processes using 2 different software systems will confuse the crap out of anyone. If anything is missed, which there always will be, reconciliation is a nightmare. Oh your number is off by $89.42? Good luck finding that. People will always work in an environment where they feel safe. Not because the old system is better, but because it’s familiar. From my experience, when companies go parallel, they fail. BURN THE SHIPS In 1519, Captain Cortes told him men to “Burn the Ships” after he landed in North America. He knew that if his men (and himself probably) had a means to go back, they would not be committed on giving their all to survive in the new land. The same thought can be applied to your ERP implementation. Telling your people that implementing a new ERP is important, but give them an option to do things the way they did before, they will always go back and do things they feel more comfortable. Now you may be asking “but Alex, what if the new system doesn’t work?” The answer is simple, don’t go live until you’re ready. If your preparation is crap, you will fail anyway. The next question you may be asking is “but Alex, what if we encounter problems with the new system?” There’s no instance where there are not problems when you go live. As long as you make proper preparation, the problems that arise should not be major. Any competent Dynamics 365 Business Central (AKA Dynamics NAV) partner or developer should be able to knock them out quickly. Preparation Before you burn the ship, it’s your job to ensure every business process can be, at the very least, replicated in the new system. This is part of your preparation before going live. Having a smooth transition to a new ERP software can’t be completed with just thoughts and prayers, it needs meticulous testing, simulations, and feedbacks. Be aware that it’s not going to be 100% smooth when you cut over to the new system. There will always be problems after go live. The important things are the major known kinks are resolved. There shouldn’t be an instance where major problems that comes up when you turn on the switch, then someone seriously messed up. Conclusion Take the page out of Cortes’ playbook. Burn the Ships. Have your people focus all of their attention and resource into making the new software work in your organization.

Forum Post: Chinese Character overlap in the report

$
0
0
Hi , anyone know how to resolve this issue? this happened only for chinese character and it is not for all lines if you see the first 2 lines are no issue

Blog Post: Tip #63 | Export Warnings & Errors from Visual Studio Code

$
0
0
If I get asked the same question twice I am already tempted to blog about it. This one exceeds this number and is long overdue. It looks like the whole world is now converting from C/AL to AL and running into challenges with that. Right now I am analysing several databases and one thing you need after elliminating low hanging fruit and removing errors that crash the compiler is to find common errors and count them. An Excel Pivot Table is perfect for that. Normally Visual Studio Code is not nice in exporting errors and warnings. You can try to copy/paste them but the work to clean up is hard. With the magic AL runner by Tobias Fenster it is prepared for you. You can download it here. https://marketplace.visualstudio.com/items?itemName=tfenster.alrunner&ssr=false#overview You can copy and paste this into Excel and use Data -> Text to Columns to use the | as a separator. The only thing that you’ll miss is the object ID and type. You can add these with adding two columns using the formula like =LEFT(C5;FIND(“.”;C5)-1) After that you’ll spend several hours. or often days in C/Side fixing errors you could have fixed a long long time ago. Enjoy!

Forum Post: RE: Update Factbox when changing record via Next or Previous Button

$
0
0
Hi Alexander or anyone else... Still looking for an answer to this one. From Alexander's reply, it looks like I'm doing something wrong. Control is located in a PageType = CardPart I have the source table SourceTable = Customer; The page was added to the Customer Page via a pageExtension where the S ubPageLink looks right as it works when I open a customer SubPageLink = "No." = field ( "No." ) ; The issue is capturing the event when I change to another customer via the next button. Thanks Yann

Forum Post: RE: Update Factbox when changing record via Next or Previous Button

$
0
0
Hi Yann, I asked about the subpage link, because wrong setup of this property could cause an issue like this. But in your case everything looks correct - factbox should raise the OnAfterGetRecord trigger.

Forum Post: RE: Publish a CodeUnit as REST

$
0
0
Hi, Codeunits can only be published as SOAP web services, and I suppose it was done on purpose. The problem is in maintaining compliance with REST constraints when publishing codeunits. You can wrap a NAV codeunit in an OData request, but you can't make it RESTful. Seems, in BC, Microsoft suggested a workaround by allowing bound actions in pages (not sure, though, how it conforms with REST principles).

Forum Post: Supply Planning - Prioritization from multiple sources

$
0
0
Seeking a solution for supply planning problem where advanced warehousing is not used. Given: Two sources of supply for a given item. The first is a company-owned supply (RED) for which common items are purchased and kept for fulfillment. The second is the supplier (VENDOR). All customer fulfillment passes through a fulfillment center (BLUE). All order fulfillment is done per-order, either supplied from RED or purchased to order from VENDOR. No items are stocked at BLUE; it is almost a cross-dock/break-bulk operation. Hard reservations are used to ensure customer orders ship only when complete (and to prevent stock sitting in BLUE from being allocated to new customers). The business process is as follows: 1. Customer places order 2. Order planning happens a. If stock available in RED, transfer it to BLUE b. If stock not available at RED, order from VENDOR and ship to BLUE c. If some stock available in RED, transfer all available in RED to BLUE and purchase remaining requirement from VENDOR 3. Consolidate items at BLUE and ship to customer As I understand the planning system, SKUs allow default supply from a single source; that is, there is no ability to prioritize and automatically calculate order planning to result in process step 2c. Questions: 1. Do I understand order planning correctly in that it cannot automatically do step 2c? 2. Can anyone recommend a solution for this?

Forum Post: RE: Update Factbox when changing record via Next or Previous Button

$
0
0
Could it have anything to do with this line in the start.js? Microsoft . Dynamics . NAV . InvokeExtensibilityMethod ( "OnAfterGetRecord" , []);

Forum Post: RE: Unable to download symbol in BC150

$
0
0
Thanks AitorNAV now I can able to download the symbols. However I have a question why MS include dependencies what is the purpose? Do you have any idea about it? Thanks

Blog Post: Dynamics 365 Business Central: debugging the Base Application

$
0
0
Yesterday at our “ Dynamics 365 Business Central Wave 2 What’s new ” event in Microsoft Italy we quickly saw hot to debug the Microsoft’s Base Application from Visual Studio Code. I’ve not spent too much time on this topic due to lack of time, but here is a summary of what I’ve done yesterday (answer to a question received after the event). As a first step, you need the Microsoft Base Application source files, available from the Dynamics 365 Business Central on-premise DVD (as a .zip file) or that you can extract from a Docker container in the following way: $alProjectFolder = "C:\SD\BaseApp" Create-AlProjectFolderFromBcContainer -containerName $containerName ` -alProjectFolder $alProjectFolder ` -useBaseLine -useBaseAppProperties -addGIT This command creates a fresh new Visual Studio Code project with all the Microsoft Base app source code. In this way, you can open an standard object and place a breakpoint on  the object (piece of code) where you need to start debugging (a trigger, a function, a line of code etc.). In Visual Studio Code, AL now has a feature called “ Attach and debug next “. Open your launch.json file and click on Add Configuration . Here you have the following choices: You can attach your debugging session to a cloud sandbox or a local client. We’re working on-premise, so select the Attach to the next client on your server option. Now in your launch.json fiel you have two configuration sections, one with “request”:”launch” (the session where the app is published) and one with “request”:”attach” (the session where the debugging session is attached): Now you’re ready to debug. Select AL:Debug without publishing (CTRL+SHIFT+F5): then execute a desired action on your Dynamics 365 Business Central environment. Voilà, the debugging session starts and code stops at your breakpoint. Happy debugging!

Forum Post: RE: Update Factbox when changing record via Next or Previous Button

$
0
0
Thanks for your help again Alexander, I ended up figuring it out... My OnAfterGetRecord was located inside the usercontrol braces (in the layout), I had to add another OnAfterGetRecord to the page itself, sop below the layout. If I only have 1 in the page, the control does not seam to load when I click on the customer but then it does when I move to the next one. I'm thinking it might be something to do with the ControlReady event which I'm not using at this time for this control. It's working though. Thanks Yann

Blog Post: Insufficient stack to continue executing the program safely

$
0
0
The better half of my past week can be summarized best by this oh-so-descriptive-error-message: Right: a message I have spent a long time on to find out what was happening – and what caused it. Multiple days – so let me try to spare you the pain when you would encounter this error. (tip: if you don’t care about the story, just skip to the conclusion ;-)). History We are rebuilding our product to Business Central – and are almost finished. In fact, we have spent about 500 days building it – and since the recent release of Wave 2, we are fully in the process of upgrading it – because obviously, since all is extensions (we have a collection of 12 dependent extensions), that should be easy. (think again – Wave 2 came with a lot of breaking changes … but that’s for another blogpost ;-)). Symptoms Our DevOps builds had been acting strange for a while – just not “very” strange .. . In fact: when a build failed with a strange error (yep, the above one), we would just retry, and if ok, we wouldn’t care. That was a mistake. Since our move to Wave2 .. the majority of the builds from only 1 of the 12 apps failed – and even (what never happened before), the publish from VSCode failed as well with the same error message: Insufficient stack to continue executing the program safely. This can happen from having too many functions on the call stack or function on the stack using too much stack space. We are developing with a team of about 9 developers – so people started to NOT being able to build an environment, or compile and publish anymore. Sometimes. Yes indeed: sometimes . I had situations where I thought I had a fix, and after 10 builds or publishes – it started to fail again. And in case you might wonder – the event log didn’t show anything either. Not a single thing. Except from the error above as well. What didn’t help I started to look at the latest commits we did. But that was mainly due to the upgrade – stuff we HAD to do because of the breaking changes Microsoft introduced in Wave 2. Since it failed at the “publish” step, one might think we had an install codeunit that freaked out. Well, we have quite a few install-codeunits (whenever it makes sense for a certain module in that app) .. I disabled all of them – I even disabled the upgrade-codeunits. To no avail. Next, I started to look at the more complex modules in our app, and started to remove them .. Since one of the bigger modules had a huge job during install of the app – AND it publishes and raises events quite heavily, I was quite sure it was that module that caused the pain. To test it, I removed that folder from VSCode, made the code compile .. and .. things started to work again. But only shortly. Moments later, it was clear in DevOps that certain builds started to fail because of the exact same error. From victory .. back to the drawing board ;-). Another thing we tried was playing with the memory on our build agents and docker hosts. Again, to no avail .. that absolutely didn’t help one single byte. … And I tried so much more .. really. I was so desperate that I started to take away code from our app (which we have been building for over 6 months with about 9 developers (not fulltime, don’t worry ;-)). It’s a whole lot of code – and I don’t know if you ever tried to take away code and make the remaining code work again .. it takes time :-/. A lot! What did help It took so much time, I was desperately seeking help .. and from pure frustration, I turned to Twitter. I know .. not the best way to get help .. but afterwards, I was quite glad I did ;-). You can find the entire thread here: I'm getting desperate here .. anyone has seen this error when publishing from VSCode? (or buiding from DevOps). #AL #msdyn365bc No installcode, no upgradecode, enough memory, no code analysis issues, …. pic.twitter.com/QM8PVKgZ8u — waldo (@waldo1001) October 25, 2019 First of all: thanks so much for all of the people for their suggestions. There were things I didn’t try yet. There were some references to articles I didn’t find yet. All these things gave me new inspiration (and hope) .. which was invaluable! Translation files, recursive functions, event log, dependencies, remove all code, force sync, version numbers, … Until phenno mentioned this: Have you checked this (similar) issue? https://t.co/k1FvZj0xKM — phenno (@phenno1) October 25, 2019 Exactly the same error message, with a big xmlport. It first pointed me to the wrong direction (recursive functions / xmlport) .. But after one of our developers remembered me that from months back, we also had a big object: A 1.2Mb codeunit, auto generating all Business Central icons as data in a table, to be able to use them as icons in business logic. Initially I didn’t think it would ever have an effect on the stability of the app (in this case – the inability to publish it) .. we wrote the damn thing more than 4 months back, for crying out loud :-/ and the code was very simple – nothing recursive, no loops, very straight forward. Just a hellofalot of code ;-). But .. It doesn’t hurt to try what it would do when I would remove the code .. so I tried .. and it works now! Victory! Conclusion The size of a file (or object) does matter . If you have the error above – it makes sense to list your biggest files, and see if you can make them smaller by splitting the objects in multiple (if possible.. ). While in our case, it was one huge object in one file. And I don’t know what exactly was the problem: the size of the file, or the size of the object. There is a difference. If I wanted to have kept the functionality, I might have had to split the object in multiple codeunits, and on top of that I might have had to split them in multiple files (which – in my honest opinion – is best practice anyway..). Also, I have the feeling that Wave 2, is a bit more sensitive to these kind of situations.. I don’t know. It’s just – we had this file for quite a while already, and it’s just with the upgrade to Wave2 that it started to be a problem. In any case – I hope I won’t wake up tomorrow, concluding the error is back and all the above was just one pile of crap. Wish me luck ;-).

Forum Post: RE: Publish a CodeUnit as REST

$
0
0
Hi Alexander, As you've said, codeunits can be just published as SOAP. The only way to publish somehing as REST, must be pages ior query, with the oData URL

Blog Post: Quickstart your D365/NAV Connect API usage – Part II: Use an Azure Function and SendGrid to find out when and where your instance is running

$
0
0
Create an Azure Function that takes input and hands it over to SendGrid First of all, why bother with an Azure Function and not just call the SendGrid endpoint? SendGrid is a commercial service where you need to create an account and an API key to be able to use their API. It has a free offer for... Read the full text.

Blog Post: Quickstart your D365/NAV Connect API usage – Part III: Use VS Code (and ALRunner) to work with the API

$
0
0
The post Quickstart your D365/NAV Connect API usage – Part III: Use VS Code (and ALRunner) to work with the API appeared first on Axians Infoma . Read the full text.

Forum Post: Navision IOS App - Could not connect to the Server

$
0
0
I am trying to use the Navision IOS app. We are using a signed certificate. I have successfully logged into the Navsion web portal both inside and outside of our network. When i try and connect using the IOS app i get the message "Could not connect to the server". Has anyone else had the same issue?

Forum Post: RE: Navision IOS App - Could not connect to the Server

$
0
0
What version of the IOS app. What verserion of NAV/365BC? What type of certificate? Did you install the certificate on your IOS device? What URL string did you use? See, it is hard to help you when you provide almost no information.. So please try again
Viewing all 11285 articles
Browse latest View live