Quantcast
Viewing all 10032 articles
Browse latest View live

Dynamics NAV BC Task Scheduler Problem

Hello everybody,

I have a problem with the Task Scheduler. After a migration to Business Central, it no longer starts the Job Queue Entry regularly.

The entry will only be started once as soon as I restart the service tier. After that no more.

The next execution time will be re-calculated. In my Opinion the Job Queue Entry and Table Scheduled Task are correctly.

Someone an idea?

A warning is in the event log

Image may be NSFW.
Clik here to view.
4ix0l4b9a43x.jpg


Question for Workflow Steps When Event

Hi Experts,

May I know if the Order of When Event matters when it terms of approval process?


Image may be NSFW.
Clik here to view.
0p79z2ve5rmb.png



Thanks in advance for your answers!

Slow performance with SAVEASPDF and custom report layouts

Hi,

Have any of you experienced slow performance when using SAVEASPDF on a report with custom layout in NAV 2018 (CU3)? Our experience is that once you select a custom layout for a report the time it takes to run SAVEASPDF increases from a few seconds to between 15-30 seconds - for the same built-in layout!

Try the following to reproduce the issue...

1) Change report selection for sales invoice to 206.
2) On the Posted Sales Invoice page select an invoice and click "Send by email". The mail dialog should show in a few seconds.
3) Go to Custom Report Layouts and create a new layout (RDLC) from report 206. Do not make any changes to the layout.
3) On the Report Layout Selection page select report ID 206 and change the Selected Layout to Custom Layout and select the newly created custom layout.
4) Go to the Posted Sales Invoice page and select the same invoice as in step 2 and click "Send by email". This time it will take considerably longer before the mail dialog is shown.

Can you reproduce the issue? And do you have any workarounds?

Best regards,

Morten

The supplied field number 'xxxxx' cannot be found in the 'xxxx' table.

Hi everyone,

While trying to run page 89 Job List, I hit upon the following error message:
The supplied field number '50025' cannot be found in the 'Job' table.

I used to have field 50025 in my job table but I don't have it anymore and nothing references this field in 89 page.

I exported in a text file and tried to find field 50025 and it doesn't exist. I looked at flowfields and couldn't see anything. Where should I look?

Thank you

can we create Credit Memo on Partial Prepayment Invoice

Hi im new to nav,
Can we credit memo the prepayment invoices partially or for a particular invoice can we post credit memo by clicking it.


Thanks in advance,

Get current value of page control and past it using GETRECORD

Hi All,
I have multicompany database and I need to write the code to get (currently users' logged in compnay) record of table: "Job: and copy it to the same table of different company.
I just can't get the GETRECORD working as it should.
CopyJob is a record link to the Page="Copy Job"
Company is a Page Control on the Copy Job page.

I have created new Codeunit object and I can't get the code to work...
Code looks like this:
IF CopyJob.RUNMODAL=ACTION::LookupOK THEN
CopyJob.GETRECORD(CopyJob.Company)
-> error at compiling: Type conversion is not possible because 1 of the operators contains an invalid type Record :=PageControl.

Can you please advice on best solution?
Thank you
BR Damjan

Restrict the different customer from "Getsource documents"

Hi all,

I have created one new warehouse shipment. Here (Ribbon->Getsource Documents).
I can able to select any record from the source document page(without considering the 'Destination no' field).

If i try to insert another record, it has to delete/replace the first record with a new record in the warehouse shipment line.


please suggest me some ideas.

Ex: 1) initially i have selected record, destination no(from source document) - C0001 ->respective records sales order's line is added to the warehouse shipment line
2)If I am selecting another, destination no(from source document) - C0002 -> it should replace the first records line from the warehouse shipment line.
I have attached the screenshot: here i have added sales order 1030 first,then added 1033. I want to replace 1030(first added) with 1033(recently added)

Image may be NSFW.
Clik here to view.
0ilcd0rr23rg.png



Thanks in advance,
Jacob.A



SMTP Mail Setup not working after Multi Factor Authentication

Hi All,

I am not able to configure SMTP Mail Setup after the MFA implementation.
We know earlier this was a simple step to configure SMTP with Office 365 Server Setting.
In my knowledge after MFA, the password will be the AppPassword. I tried this but no luck. See the setup and error in below screen shot.
Business Central 13 CU02 AU
Image may be NSFW.
Clik here to view.
zzd1o28wh3rn.png


Please share your experience to solve this issue.
Thanks,
Manish Sinha

Job Queue with Task Scheduler and User ID

Hello,

I am facing problems in NAV 2018 with the Task Scheduler that runs Job Queues.

When a new NAV session is opened, all Job Queues are rescheduled by the codeunit Job Queue User Handler (function RescheduleJobQueueEntriesOnCompanyOpen).

My troubles come from the fact that these tasks will be executed on behalf of the current User ID.
So, a Job Queue will always run with the permission of the last logged in user instead of the User ID on the Job Queue Entry.

Have you already faced this problem? Is there a workaround?

Thank you in advance for your help.

Copy record using transferfields with records of linked table

Hi All,

I need a some advice on how to link a table to a source table from the one I have to copy record. Source table has some records in a linked table and I would like to copy also these records of the linked table.

code:
JobTaskRec.CHANGECOMPANY(CompanyTo); //copy record in another company
JobTaskRec.TRANSFERFIELDS(SourceJobTask); //user's record to be copied
JobTaskRec.INSERT(TRUE);

CopyJobTasks.CopyProjectTasks -> this is the function I would call after recors in the main table=JobTaskRec are inserted.

I was looking at CU80, but it does not work on that way, or let me say, that I would really like to have as little code inserted as possible, since we are going to migrate to BC and I do now want to have a lot of work with migration:)

Thanks Damjan

Deleted report still shows in NAV and Web Client

I recently created a 2nd report named Inventory Val2 to help practice for modifying an existing report in the NAV Development Environment. After all changes were done and copied to the original report(Inventory Valuation) I deleted the 2nd report. But now when I search in the NAV client or Web Client I see 2 Inventory Valuation options. One of which works while the other leads to an error page. Anyone encountered this before?
Image may be NSFW.
Clik here to view.
trkt4f3383dj.png

Image may be NSFW.
Clik here to view.
1qa7zzgmfzh4.png

Web client shows 2 reports when only one was modified

I modified the Inventory Valuation report using the development environment and now on the web client it shows 2 Inventory Valuation reports. One of them work as expected and the other just goes to an error page.
I did previously copy the original to a new report I called Inventory Valuation2 but after I was done with the development I deleted it.
Help is very much appreciated.Image may be NSFW.
Clik here to view.
9gl4a9uw2psg.png

Image may be NSFW.
Clik here to view.
qlmzwwiibivs.png

Image may be NSFW.
Clik here to view.
lmtz98ue704e.png

BC140 - bad performance of import via xmlport on SQL Azure (and very fast on local SQL Server)

Hi there,

We are experiencing very bad performance of a xmlport that is used to import gen. ledger entries. The server and webclient (Business Central 140 - Spring release cu2) are running on a Azure VM, the dabase is on SQL Azure.

I've created some files with different sizes. A small file (50k) takes about 15 seconds to import. A bigger file (1 mb) runs for 15 minutes. The largest one (23mb) takes endlessly to process (we've aborted the import after it was running for over 30 hours already!). The system doesn't seem to hang, it's just busy doing things... slowly....

The biggest file is "done 'n dusted" within 3 minutes on one of the SQL Server instances in our own network. So running time seems to explode almost exponentially with the increase of file size. Processor and memory load on the Azure VM are normal, running the import only effects these numbers marginally.

Does anyone have a clue while this takes ages on SQL Azure and runs smoothly on our local SQL Server? Could it be just a setting setting on Azure that can speed up things?

Best regards,
Josh

Returning value when performing Odata operation(i'm using postman as test)

Hey,
is it possible to return a value when a page is consumed as odata?

i published a page as Odata with bunch of fields that can be used externally. The page creates a new customer, and it should return newly created customer number. However, the issues is that, when the action is perfomed, i get the query back as result. including the customer number. Is there a workaround, where only customer number can be returned, instead of all the listed fields?. This can be done using soap and codeunits, but Odata is required here.

NAV version is 2018 CU5.

I read about bound actions, but that requires version CU 10 and up. Can a function be called from outside with bound actions and send a return value?

thanks.


Select the same "destination no." records avoid the different "destination no" records.

Hi All,

While multiselection of the 'Get source document' in Warehouse shipment page, "I can only able to select the same Destination no." records otherwise system has to throw an error.

Example:
Multi-selection 1) selecting the same destination no. records (C0001 and C0001) ->System should allow.
Multi-selection 2) selecting different destination no. records (C0001 and C0002) ->System should restrict and throw an error.

Please suggest me some steps to achieve this.

Thanks in Advance,
Jacob.A

Date format as MM/YYYY

Older NAV versions were able to define customized date formats in CU-1. Currently in newer versions like NAV2018 and 365 BC, after Microsoft has redefined CU's, these formats suppose to be handled in CU-45. By using table field properties 'AutoFormatType' and 'AutoFormatExpr' and related code in CU-45 (function AutoFormatTranslate) as:
Case AutoFormatType of
3: Exit('<Month,2>/<Year4>'))
END

But it's not working the same. As a matter of fact it's not doing anything.
Are there any other ways to get the same result? This should be for displayed fields and fields which can be modified.

Non-converted Value in G/L Register Report.

I am trying to tackle a problem I was assigned to solve;

In BC when we create General Journals, we get an option to select a currency.
If we select a currency other than the LCY of the System, let's say, LCY of the System is set to GBP, and while creating a Gen. Journal I select USD.
After posting this Gen. Journal when we go see it in G/L Register list page, we can print a G/L Register report and the report shows the amount in the report's table that is converted from USD to GBP based on the conversion amount set in exch. rates.

I am required to show both amounts at line level of the report, amount in LCY that is converted and the non-converted amount the currency code of the General Journal so basically the amount user has input while creating the Gen. Journal as it is.

So I go see the tables involved in the whole process and the Gen. Journal Line table has Currency code, but G/L Register table does not maintain that.

I do not have the access to currency code of the document in G/L Register report.

Current price field in the table "Item"

I have created a field in the item table.That field will display the latest current price of the item.

Ex.
I have updated the price for the item A as $10 from 01/01/19 to 31/12/19.the field will show $10 as the current price.
Suppose when i update the price of the item A for a certain period 01/10/19 to 30/11/19 as $15. It should display the current price as $15 for that period alone.After 30/11/19 it should display the previous price $10.

How to achieve this?

Thanks
Gugan

how to change field value in table in bc?

Hi all,
I have added two boolean field in purch.rcpt.line
Qc needed
Qc Tested
now i want to change it's value as we checked mark that field.
my question is how i can change it's value
by page extension then which page it extends.
thank you in advance.

Workflows

Hi,

I have an issue with the workflows that have me confused and I cannot seem to find any solution for this issue. The scenario is as follows;

We have 1 workflow that is setup under sales, MS-SOAPW where we have set certain criteria for this workflow. It is a custom field on our Sales Order for Gross Profit percent, and if the GP% on the order falls below 33% it triggers this workflow. This works just fine. But then doesnt trigger any other workflow if other criteria fail.

Example: Workflow MS-SOAPW-02 is for the Gross Profit <33% send for approval.
Workflow MS-SOCLAPW-01 for Sales Orders when the Customer has exceeded their Credit Limit.

We create a Sales Order that is below our Gross Profit percentage as well as over the credit limit. The Gross Profit workflow is triggered, they then approve the order, the order is released instead of triggering the Credit Limit workflow afterwards. Now the Order is released, the warehouse pick the product and ship, even though the customer is over is credit limit.

Is there a way to get past this or to have one workflow trigger another? I am not a developer so please respond as a consultant. If development is needed, I will have our developer figure out your possible solutions.

I did try combine both workflows into one, but that failed.

Thanks in advance

Malcolm
Viewing all 10032 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>