Unable to Clear VO Cache : Tutorial Create-Part2.
I am tring to create a new record using the steps in create - Part2 of the toolbox tutorial in Jdev.I am facing issue at step: Step 3.5 .
When I run EmpSearchPG-->(Button)Create Employee -->EmployeePG
on this page it picks teh first row from the table and displays the data in the respective fields.
And error I get is :
Error
EmployeeId - Employee number cannot be updated.
Although I have set the attribute property of EmployeeID to updateable when new ,
and am doing vo.clearcache().
I have gone through many threads but coudnt find the solution. I am hoping someone will give me a clue.
My code in EmployeeCreateCO:
if (!pageContext.isFormSubmission())
OAApplicationModule am = pageContext.getApplicationModule(webBean);
am.invokeMethod("createEmployee", null);
}EmployeeAM:
public void createEmployee()
OAViewObject vo = (OAViewObject)getEmployeeFullVO1();
if (!vo.isPreparedForExecution())
vo.clearCache();
vo.executeQuery();
Row row = vo.createRow();
vo.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
} // end createEmployee()EmployeeEO :
public void create(AttributeList attributeList)
super.create(attributeList);
System.out.println( "EmployeeEOImpl- create() method " );
OADBTransaction transaction = getOADBTransaction();
Number employeeId = transaction.getSequenceValue("FWK_TBX_EMPLOYEES_S");
System.out.println("employeeId = " + employeeId); //generates unique id for each run
setEmployeeId(employeeId); //cant set it though
public void setEmployeeId(Number value)
setAttributeInternal(EMPLOYEEID, value);
System.out.println("EmployeeEOImpl");
System.out.println("1 value = " + value); //--------------this gets printed
System.out.println("2 getEmployeeId() = " + getEmployeeId()); //--------------this gets printed
if (getEmployeeId() != null)
System.out.println("3 value = " + value); //////--------------this gets printed
System.out.println("4 getEmployeeId() = " + getEmployeeId()); //--------------this gets printed
throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
getEntityDef().getFullName(), // EO name
getPrimaryKey(), // EO PK
"EmployeeId", // Attribute Name
value, // Attribute value
"AK", // Message product short name
"FWK_TBX_T_EMP_ID_NO_UPDATE"); // Message name
if (value != null)
System.out.println("5 value = " + value); ////--------------doesnt get printed
System.out.println("6 getEmployeeId() = " + getEmployeeId()); //doesnt get printed
OADBTransaction transaction = getOADBTransaction();
Object[] employeeKey = {value};
EntityDefImpl empDefinition = EmployeeEOImpl.getDefinitionObject();
EmployeeEOImpl employee =
(EmployeeEOImpl)empDefinition.findByPrimaryKey(transaction, new Key(employeeKey));
if (employee != null)
throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
getEntityDef().getFullName(), // EO name
getPrimaryKey(), // EO PK
"EmployeeId", // Attribute Name
value, // Attribute value
"AK", // Message product short name
"FWK_TBX_T_EMP_ID_UNIQUE"); // Message name
setAttributeInternal(EMPLOYEEID, value);
} // end setEmployeeId()
In your setEmployeeId method, you are having setAttributeInternal(EMPLOYEEID, value); as the first line. This is leading to the issue. Move it to the end of the method and your problem will be solved.
As you are calling this in the first line, all the validations which should be fired before setting the Employee Id are getting fired after setting the Employee Id.
Cheers,
Ganesh
Similar Messages
-
Unable to clear the cache content
Hi
messages are stuck in queue, so i went smq1 & smq2 and clear the queue. again i processed it while putting the file in ftp.
In sxi_cache i went and seen it is showing - Unable to clear the cache content. traffic light is in red mode. I know that it should be green....
thanksHi,
Please gothrough the same disscussion
Error in Cache Refresh(Unable to refresh cache contents)
SXI_CACHE Error: Unable to refresh cache contents
Regards
Seshagiri -
Internet keeps going in and out - "unable to clear ARP Cache"
I recently upgraded my WRT54GS firmware to ver. 4.whatever the most recent is. I also secured the wireless router using the WPE key. My internet connection on one of my wireless laptops will cut out for about 30 + minutes and when I try to reconnect to the network it says unable to clear the arp cache. This same laptop had no problems when the network was unsecured and the firmware was ver 2. whatever.
Any help would be appreciated as this laptop is used to work from home two days a week.Hi...Try out a couple of commands from the command prompt:
"netsh interface ip delete arpcache"
"arp -d "
If that doesn't work. reboot.
let me know if this works for u... -
Lumia 800 Unable to clear Browser Cache
Here's my problem. Every time I go to Google News and click on a news item and then press the Back button, I am taken to a Google news page cached a week ago. If I refresh the page, I get the latest news page, but browsing to a news item and then attempting to return to the home page takes me back to the old cached page. The only way to clear cache is to delete the History in the browser settings and I have done this several times but to no avail. I am unable to understand why the old news page keeps coming up. Help anyone?
P.S.: My firmware versiion is the latest: 1750.0805.8773.12220
Solved!
Go to Solution.Have you tried closing the tab you are using? Go to …>Tabs and close the relevant tab. This way a new tab without any cached information is opened.
Press the 'Accept As Solution' icon if I have solved your problem, click on the Star Icon below if my advice has helped you! -
Unable to clear java cache and also unable to load JAVA Applets when QTP installed in PC
Hi,
I am facing a problem when QTP 11.0 along with Java 6 Update 22 and Java Plugin installed in the PC. The Java Applets are not being loaded in the webpages, when I try to load it through QTP, but when I try to load the applets manually that is working fine. Can anyone suggest any kind of solution for this. All the setup was being run on 32-bit and 64- bit PC's.
Thanks in advance,
Waiting for the reply.start the weblogic server with the command startWeblogic. And then start the SOA server from Admin console.This is the issue. For starting servers from console, you need to configure node manager. Start SOA servers from command line using command startManagedWeblogic (as mentioned in Quick Start Guide for BAM server).
Regards,
Anuj -
How to clear the cache in the portal browser
Hello Experts,
Iam unable to clear the cache in the portal. I tried clearing the Navigation cache , PRT cache,PCD cache,Database cache,UME cache.
The senario is in the browser if iam logging with some user X , he should see only 1,2,3 countries, and if i logg off and again logg in the same browser with different user he is seeing same 1,2,3 countries unlike he should see 4,5 countries.
But if iam opening in different browser iam getting the correct one with cache cleared.
I want to acheive this in the same browser.
Qucik help in solving out this cache problem is appreciable.
Regrds,
Manasa.There is one more important cache: the HTTP Provider Service cache (in VA).
To find out why the browser is showing the same languages, analyze what the server is sending to the browser with HTTPWatch or Firebug and look at the cache flag. Also check what is the iView cache parameter? Is it user, session, shared or none?
How do you do the logoff? The best thing is to make sure that the HTTP Session is killed. If not, the portal may send data that is cached for the HTTP Session to the browser. When you open a new browser, you will also open a new HTTP Session. That could be the cause why it is working with a new browser instance.
br,
Tobias -
Unable to clear cahe permanently though manually deleted cache files
I removed ccmcache manually by using shift delete as the cache size is full
Though its free, I am getting error message,
The content download
cannot be performed because there is not enough available space in cache or the
disk is full
I had used powershell script but no luck its only deleting any folders present in ccmcache.
How can we clear the cache though the files are not present in ccmcache
$UIResourceMgr = New-Object -ComObject UIResource.UIResourceMgr
$Cache = $UIResourceMgr.GetCacheInfo()
$CacheElements = $Cache.GetCacheElements()
foreach ($Element in $CacheElements)
$Cache.DeleteCacheElement($Element.CacheElementID)Manually going to Control panel to delete is disabled in our organization
I started using a powrshell script but it started deleting the cache..but couple of machines, I am getting error message as below. Other its working fine
in folder location C:\windows\ccmcache\17
Exception calling "DeleteCacheElement" with "1" argument(s): "Exception from HRESULT: 0x87D01203"
Script
$UIResourceMgr = New-Object -ComObject UIResource.UIResourceMgr
$Cache = $UIResourceMgr.GetCacheInfo()
Write-Host "The total Cache size = $($Cache.TotalSize)"
Write-Host "The total Cache free size before execution of script= $($Cache.FreeSize)"
Write-Host "The total Cache used size before execution of script = $(($Cache.TotalSize) -($Cache.FreeSize))"
$CacheElements = $Cache.GetCacheElements()
foreach ($Element in $CacheElements)
Write-Host "Deleting CacheElement with PackageID $($Element.ContentID)"
Write-Host "in folder location $($Element.Location)"
If (!(Test-Path $($Element.Location)))
md $($Element.Location)
Write-Host " folder created successfully"
$Cache.DeleteCacheElement($Element.CacheElementID)
$UIResourceMgr = $null
$Cache= $null
$Element = $null
$UIResourceMgr = New-Object -ComObject UIResource.UIResourceMgr
$Cache = $UIResourceMgr.GetCacheInfo()
Write-Host "The total Cache size = $($Cache.TotalSize)"
Write-Host "The total Cache free size after execution of script= $($Cache.FreeSize)"
Write-Host "The total Cache used size after execution of script = $(($Cache.TotalSize) -($Cache.FreeSize))"
$UIResourceMgr = $null
$Cache= $null
$Element = $null -
Unable to clear $(CFBundleIdentifier) from cache
Unable to clear $(CFBundleIdentifier) from cache. Goes to trash but can't be emptied even after restart, says it's in use. What is it and how do I get rid of it.
It's normal. Leave it alone.
-
Unable to clear cache in 3.6.10
Running 3.6.10 and not able to clear cache either manually or automatically. I don't know what else to do as I've done everything the help section says to clear the cache.
I was also unable to install Skype due to a cookie problem. I'm hesitant to reinstall Firefox due to all of my bookmarks.Did you check that on the about:cache page?
* Make sure that you not run Firefox in [[Private Browsing]] mode
* You are in Private Browsing mode if you see "Tools > Stop Private Browsing", possibly grayed
Are the disk cache and the memory cache enabled?
* http://kb.mozillazine.org/browser.cache.disk.enable
* http://kb.mozillazine.org/browser.cache.memory.enable -
Clear Item Cache after validation failure
Hi Guys,
I have a page validation that fires when two items (P6_LOCATOR_ID & P6_NEW_LOCATION) are equal which is working OK.
The field validation is on the P6_NEW_LOCATION field.
When this validation is true, I want the validation message to appear as it is now, but I want the P6_NEW_LOCATION to be reset to null or the cache for that item cleared.
I cant run it as a page process after computations and validations because it never gets passed the validations to initiate. I have also tried creating a clear item cache process after the button that initiates the validation is pressed, but again that doesnt work.
Can anyone think of another way that it can be done?
Thanks
ChrisVC wrote:
Cashy wrote:
Thanks for that VC,
I am getting following error now when it is running
Error ERR-1002 Unable to find item ID for item "2" in application "195".
I have set :P6_LOCATOR_ID and :P6_NEW_LOCATION = 2 as the test. When I try to set them both to other numbers i.e. 1,3,4 etc the same error message is returned with the item in the quotes changing for each.
when you are setting the value use assignment operator
:P6_NEW_LOCATION := 2
I am guessing that it might have something to do with the page branching back to itself after the validation is fired?
Thanks
HI VC,
Thanks for that. I am not setting the value of :P6_NEW_LOCATION programatically, I am just putting the value 2 into the field item and pressing the 'submit' button behind which the validation is running.
Thanks for your help -
OK, so I'm clearly a newb. I thought if I asked a question, it would post, and now I'm being told to post a comment, so I'm asking the same question again. Sorry I sound like an idiot. I'm new to this apple/mac stuff.
Why does iTunes/iPhone 4S insist it can't find a song on my PC or my phone when it is on both? This is resulting in me being unable to use the ringtones I created from these songs, but I can still play the songs.If you have added the ringtone file correctly to iTunes, it will appear under iTunes 'Tones' library.
If you don't find Tones library in iTunes, go to iTunes menu EDIT/PRFERENCES under GENERAL tab, check the Tones Box under Library source to display Tones library in iTunes.
iTunes accepts only m4r file as ringtone and has to be less than 40secs. -
Unable to clear open items for Bank GL
Hi Experts,
I have scenario where I am unable to clear bank clearing account through F-03.
The Bank Clearing GL account master is NOT managed as "Balances in Local Currency only'
Current issue is:
Invoice is posted with USD currency
Ex: $100 (1st April 2013, Exchange rate @ INR 50)
The payment is posted in INR 4900 (1st December 2013, Exchange rate @ INR 49) .
Here the balances in USD are clear with $100, but with difference in local currency which is posted as Forex gain.
But while clearing the GL through F-03, the error is popping up ... "difference too large for clearing".
Please help me how we can clear the balances of this GL (Which has two different currencies posted before clearing)
Thank you.
Best regards,
SriHi,
The message comes because of different document currency in Invoice and payment.
In payment, your document currency is INR, so the system will calculate to LC1, LC2, LC3, cannot calculate back to your invoice currency, so even EUR amount is the same but the INR amount is still different.
Document currency Ex Rate Local Currency Clearing currency
Invoice 100EUR 50 5,000INR 5,000INR
Payment 4,900INR 1 4,900INR 4,900INR
If clearing currency is INR, even EUR amount is the same but you still have different in INR amount
In my example, in F-03, when you choose the clearing currency is USD, and choose the open item list
Document currency Ex Rate Local Currency Clearing currency
Invoice 8,000EUR 10,000USD 10,992.40USD
Payment 10,000USD 1 10,000USD 10,000.00USD
Screenshot in Local currency:
Sceenshot in clearing currency: (different amount is 992.40)
In this case, the system will created automaticall line item to Exchange gain/loss for different amount.
You have to add one more line to offset this different amount.
Example in my case, because of the different amount 992.40- is debit to Exchange loss by system.
So now, I will add more line to credit that amount again line below
Julie -
Unable to clear out the stock in SAP
Hi Expert!
Need your help. I have an issue, my user wants to clear out the stock in SAP because they are the old stock and there's no stock in actual warehouse for those materials actually. it is just in the system taht showing those materials have stock in warehouse. but however, she's unable to clear out the stock. So when i check in the system, the materials are batch managed and still have open POs dated on 2003 which has already old. Is it the reason why she can't clear the stock? Do i need to ask her to off the batch management for those materials,then delete the POs and then only she able to clear the stock? Please advise on the solution..
Thanks.hi
do the physical inventory and adhust stock
1) Create physical inventory doc using MI01
2) Post the Physical Inventory stock Using MI04 ( Mark Tick if the stock is Zero)
3) Post the doc in Using MI07
Note : Give the batch no if the material is activated the batch -
Unable to clear Google search history in Safari
I am unable to clear old searches in Safari. None of the following has any effect: using the clear recent searches button, totally resetting Safari, deleting all history and cache and trying to delete each individual search item manually, or by changing default search method. These are old items, not recent searches, but they continue to show up in the recent search area. It appears to be a bug. Any ideas how to REALLY clear out the search cache?
THANKSSeem to have finally fixed it by deleting the safari plist entry.
-
Unable to clear the invoice/credit in SAP via T-Code F-04
Hello Guys,
Unable to clear the invoice/credit in SAP via T-Code F-04.
While I proceed to Clear the cutomer open item i am getting below error.
" The Entry GB XX Is Missing in Table T059Q".
Kindly suggest what needs to be done to overcome with this message.
Thanks and regards,
Hemanth.Hi Hemanth,,
Hope you are using Classic WHT for your company code in country GB.
And the Classic WHT tcode XX was maintained in customer master data, but the same code would have been deleted from the system. Since these line items to be cleared also, stored that tax code only. So you are getting this erro in F-04.
So you need to create the above said tax code in OBA7 and then you will be able to clear the customer line items with F-04.
Regards,
Srinu
Maybe you are looking for
-
Time Machine once worked, now external hard drive is "read only"
I have a 2005 iMac G5, running OS X 10.5. Had some power issues, and reinstalled (and archived) my OS a couple of time. Recently purchased Western Digital 1TB external hard drive for back up. It worked once or twice, but now shows "read only" status.
-
CCA 8.1.2 FP2 Oracle 4.5 Linux Bea 10 MP1 - Unable to Process Hashtable
Hi, I am able to login to TAW successfully. But when I tried to add a new workgroup or add number of users in the licensing tab or anything to do with the update into db, I am getting this error. ================================= [DEPLOYMENT, 03:31:0
-
My phone was updating the new software and now will not turn back on, what do i do?
my phone was updating the new software and now will not turn back on, what do i do?
-
Optimum Configuration for Parallels 5 and Windows 7 Home Premium 64-bit
I recently installed Parallels 5 and Windows 7 Home Premium 64-bit on my 15" MacBook Pro (recently purchased). What is the optimum configuration for the Virtual Machine?
-
How to install CS3 without cd?
My photo editing computer is on the fritz (bad motherboard, unfortunately) so I am left to temporarily use a reformatted 10 year old Dell Dimension onto which I am attempting to install CS3. It appears that both the CD and DVD drives on the old compu