Showing posts with label V3 Bug Report. Show all posts
Showing posts with label V3 Bug Report. Show all posts

Friday, 20 July 2007

Refreshing Screen Info in V4 PII

After a lot of further studying it seems that it is not Lock / unlock that have been disabled but the flag that deems whether the screen needs redrawing that does not get set by the fact of updating the labels of the columns in a grid so my problem may not be V3 to V4 related it may be general.

Great, well I have a call in and I am trying all sorts of detours in order to get the form to update the column headers, so far the only reliable one is for the User (!) to click on the scroll bar below the grid.

A single click is enough to redraw :-(.

I have not tried to move the screen back into V3 in order to see how V3 will cope with it, it seems a rather retrograde step to undertake especially as it is meant for a V4 implementation.

Anyhow will post on this subject again later.

Take Care
Sven

Friday, 22 June 2007

V3 - V4 Interesting bug

I had an interesting experience the other day, actually I was pretty infuriated initially but now that I have done it I can laugh about it.

I had to create for a fashion related business a "vertical" order entry screen as opposed to horizontal one as found in Ax.

The project calls for the creation of up to 50 columns of size/Color/style related columns against which it is possible to enter the qty one wants to order.

In order to carry out the modification I used array based fields (not sure it was the best decision but it allows me to extend the screens etc quite easily) and I dragged the array of fields into a grid then proceeded to declare the fields as being visible to ther elements.

Then I tried to call them but stubornly the pre-compiler treated the call as an error and would not allow me to look up the fields.

Strange ? They were declared I tried debugging my form and in the debugger I had all the functions properly declared as they should be.

Thinking it was a problem with the length of the names I renamed a field, then the system said illeagal name ? Interesting, apparently when you drag the fields on to the grid they are autonamed with a [xx] extension name based on the array element they represent however [ ] are not leagal names for fields :-).

So I had to go through and rename all my fields if I wanted access to them in the grid. Wonderfull stuff ! Not !

Anyhow have reported it to one of our partners and hopefully he will get them to change it at some time in the future.

Take Care and Have Fun
Sven

Thursday, 2 November 2006

Bug in Axpata V3 SP4 "Record already exists"

Again whilst doing a customer implementation I came across a bug in Axapta SP4 and SP5 which will be corrected I am told in SP6.

The bug can be reproduced by the following means:

Go to Accounts Payable / Periodic / Purchase Order Update / any of the options

Do not select any orders just change the Quantity Parameters back and forth, after 2 goes you will get a message about a record not being able to be updated as it already exists.

The cause of the bug is the addition in the PurchEditLines Form on the PurchParmUpdate datasource field SpecQty method modified where a call is made to element.calctotals()

This method found in the main methods of the form forces a write of the purchParmTable which as the screen is empty creates an empty record and then proceeds when the field above is changed to try and do so a second time which causes the error.

I have 2 possible solutions,

1 Check before if PurchParmTable exists and only call CalcTrans if it does, or

2 check in calctrans if a recid is present and only write if it is.

Hope this can be of help to anyone needing to resolve the issue somewhere else.

/Sven

Wednesday, 1 November 2006

Bug in Axapta V3 SP4 "SelectLocked Incorrect call" expected to be Fixed in SP7 :-(

Whilst helping a customer during implementation of their Axapta system I came across a bug, I have notified the support organisation and have been told it wil be fixed in SP7 which I find rather baffling as the bug steems from code introduced in SP4.

Anyhow.

If you are using IMTS, and have installed SP4 and are using physical valuation and you have activated the warehouse dimension then a bug / erroneous error message is generated.

The bug is an error message is generated if your try to generate a Purchase order from a sales order and in a number of other cases (not all have been identified) one other is if you delete a production that is referenced to a sales order.

The message :

You get an error message stating that you have called inventsumTTS.inventItemLocationSelectLocked incorrectly.

This is due to the following code added in SP4 to the inventMovement.EstimatedFinancialValue method

if (this.inventModelGroup().InclPhysicalValueInCost)
{
inventDimFinancial = InventDim::findOrCreate(inventDimFinancial);financialInventOnHand = InventOnHand::newItemDim(this.itemId(), inventDimFinancial, inventDimParmFinancial, true);
}

The last parameter is the lock clause in the InventOnHand new which forces a verification of lock on such modifications.

I have corrected the bug, by adding a new method exposing the lock parameter of an InventOnHand instance which I have called

LockSet.boolean LockSet()
{
return lock;
}

Then I have modified the above code to :

if (this.inventModelGroup().InclPhysicalValueInCost)
{
inventDimFinancial = InventDim::findOrCreate(inventDimFinancial);financialInventOnHand = InventOnHand::newItemDim(this.itemId(), inventDimFinancial, inventDimParmFinancial, _InventOnhand.LockSet());
}

Which perpetuates the Lock state from the caller on to the possible new inventonhand instance created.

If anyone wants them I can forward or perhaps post the actual fix xpo or a link to it if desired please comment, otherwise it should be pretty straight forward to follow the explanations given and effect a fix from them.

Besides I am sure most of you would rather have the pleasure of doing your own fix ;-) whilst waiting for MS to publish SP7.

/Sven