2119923, 447 PM Document 2285442.1
Copyright(c) 2023, Oracle Al rights reserved, race Confident
Resolving the Post Mass Additions Request When it Errors with "Retrieving a row from the
FA_CATEGORIES table for the category ID {CATEGORY} failed" (Doc ID 2285442.1)
In this Document
References
Oracle Fusion Assets Cloud Service - Version 11.1,11.1.0 and later
Oracle Fusion Assets - Version 11.1.11.1.0 and later
Information in this document applies to any platform.
This document outlines the areas to review if you ever receive the error message "Retrieving a row from the
FA_CATEGORIES table for the category ID {CATEGORY} failed.” in the Post Mass Additions log file.
The Post Mass Additions log file will always show this error if the Prepare Transaction Data request that is run before this,
completes in ERROR. Looking at the Prepare Transaction Data log file will provide you
the real reason why the Post Mass Additions failed with this error.
Actons ¥ View ¥ Schedule New Procese x z a
Name Process 1D status
Post Mess Additions ras txor
Prepare Arsets Transaction Date 12215 Exror
You can see in the above screen shot that the Prepare Transaction Data request failed.
Looking at the Post Mass Additions Log, it shows:
Retrieving a row from the FA_CATEGORIES table for the category ID {CATEGORY} failed.
fa_cache_pkg.fazcat
‘ORA-01403: no data found
‘The mass addition ID #########+ failed,
‘The number of records processed is 0.
‘The number of records that failed is 1
‘Asset Numbering completed
‘The module Post Mass Addition ended with an error,
fa_massadd_pkg.main
User-Defined Exception
So that is the generic error that you will see in Post Mass Additions, however, to see the real issue, you need to review the
Prepare Transaction Data Log file as shown below:
‘The depreciation method for this book is invalid.
‘The ADDITION transaction ### ##### failed for asset number ## i # iii #4
fa_prepare_mass_additions_pkg.process_lines
User-Defined Exception
hitpsisupport oracle. comlepmes/acesiDocumentDisplay?_adfct-sale=172u2wmz4k.48i
192119923, 447 PA Document 2285442.1
‘The number of records processed is 0.
‘The number of records that failed is 1
So you can see that the actual error is "The depreciation method for this book is invalid." and not the Retrieving a row from
the FA_CATEGORIES table for the category ID {CATEGORY} failed one.
This is what was entered in the ADFDI spreadsheet:
Depreciation Method \Life in Years Life in Months: |
SLT 10) a
T T T
This should have been entered in as STL not SLT. To troubleshoot which record, see Troubleshooting script 2).
This is a common error encountered when trying to Add assets via spreadsheets (ADFDI or FBDI), To provide some
background as to why this error occurs:
ROOT CAUSE
When the Submit or Post is run, the Prepare Transaction Data program fist clears out the ASSET_CATEGORY_ID,
DEPRN_EXPENSE_CCID as well as the DEPRN_EXPENSE_SEGMENT1, DEPRN_EXPENSE_SEGMENT2,
DEPRN_EXPENSE_SEGMENT3 etc and the LOCATION_ID and LOCATION_SEGMENT1, LOCATION_SEGMENT2,
LOCATION_SEGMENTS etc. If there is only 1 item that is invalid (for example, the method code of SL instead of STL), the
Prepare Transaction Data program ERRORs out and as a result, does not complete the bulk combination generation
program (the program that generates the IDs (le, Asset_category_Id, Location_id etc)) and stamps all records within this
batch with the same error message. Now the ERROR only shows when the posting_status for the records is put to POST. If
they are submitted with NEW or ON HOLD, then the error will not occur, but the items will be blanked out for the same
reason. So when this errors, (i the posting_status was set to 'POST"), then the Post Mass Additions which was run from the
spreadsheet as wel, will how the error ‘Retrieving a row from the FA_CATEGORIES table for the category 1D
{CATEGORY} failed’ in the log fle
In the spreadsheet, the following are required to be valid in order for the generated ID to be inserted meaning that the
Prepare Transaction Data process will complete successfully
ITEM TABLE ‘SOURCE COLUMNS
[Asset Key [FA_MASS_ADDITIONS [ASSET_KEY_SEGMENT1, ASSET_KEY_SEGMENT2, ASSET_KEY_S
[Category [FA_MASS_ADDITIONS [CATEGORY_SEGMENT1, CATEGORY_SEGMENT2, CATEGORY_SEC
[Depreciation Expense IDEPRN_EXPENSE_SEGMENT!, DEPRN_EXPENSE_SEGMENT2,
|FA_MASSADD_DISTRIBUTIONS|
iAccount. IDEPRN_EXPENSE_SEGMENT3 etc
[Depreciation Method [FA_MASS_ADDITIONS [METHOD_CODE, LIFE_IN_MONTHS
[invoice Number [FA_MASS_ADDITIONS [INVOICE_NUMBER, VENDOR_NUMBER
[Location |FA_MASSADD_DISTRIBUTIONS||LOCATION_SEGMENT1, LOCATION_SEGMENT2, LOCATION_SEG
PProrate Convention [FA_MASS_ADDITIONS [PRORATE_CONVENTION_CODE
Review the Troubleshooting steps to resolve the issue.
Here are a number of different scenarios where the Post Mass Additions will give you that error or have the issue of the
Category not being populated and ways to you can troubleshoot the issue on your awn:
You can use the following setup to run SQL in your BI instance (How to create SQL based ad hoc report using BI P in
Fusion Application (Doc ID 1533562,1))
1) Depreciation Methods Reference Data Set
‘The Depreciation Method Reference Data Set in the Manage ASSets Book form does not match the data set used to ad the
method
hitps:/suppor. oracle. comlepmosfacesiDocumentDisplay?_adf c-state=172u2wmztk_A8id=2285442.1 292119923, 447 PM Document 2285442.1
You will need to replace the with the name of your book.
additions mi
and eth. lif ras.life in_months
and mas ull
and nas = ‘"
and mech. set.
and sid.set_code != (
select sid.set_code
£a_book controls bk,
snd_setia ‘
where asg-REFERSNCF_GROUP_NAME = RECIATION METHODS?
and bk.book_type_code = mas.b¢
and sid.language - ‘US
and 2sg.determinant value ~ bk.book control id
‘J METHOD CODE [LIFE _IN_NONTHS |)'SETLCODE
isn 35 COMMON
Navigation:
‘Setup and Maintenance > Search for Manage Asset Books > Search for the book > Scroll down to the bottom and check the
reference data set on the > DEPRECIATION METHODS area
Solution:
Need to either go into the Manage Asset Books form and change the Reference Data Set setting for the DEPRECIATION
METHODS parameter to match that of the ones in the spreadsheet
OR
Need to setup new Depreciation Methods based on the Reference Data Set outlined in the Manage Asset Books form.
2) Depreciation Methods Not Valid
The depreciation methods that have been entered in the spreadsheet (method_code and life_in_years and life_in_month) do
‘not exist in the system,
You will need to replace the with the name of your book.
‘
mas.life_in
fron (select mathod_code, life_in months
from fa mass additions mas
Where mas-beok type code ~ '") mas
where (nas. , mas. .ife_in_nonths
ot.
{Penton cove |} ure IN wowris
5
ist 2
20 Cy)
\cronths from fa methods);
If rows are returned, need to update the records in the spreadsheet to have valid methods/life combinations.
3) Prorate Conventions Reference Data Set
‘Show the conventions that have been entered for the rows in the spreadsheet where the reference data set that they are
setup under do not match the settings in the Reference Data Set region for the book in the Manage Asset Books page.
hitps:/suppor cael. comlepmosfaces/DocumentDisplay?_adl c-stale=172u2wmztk_A8id=2285442.1 a92119923, 447 PM Document 2285442.1
You will need to replace the with the name of your book.
ynvention types conv
where conv.prorate convention_code ~ mas.prorate convention cod
and as,book type code = 'Zreplace with BOOK name>’
and conve
and sid
and bk.
NTTONS")
and 20g
and asg.sot_id - s:d.set id);
{J PRORATE_COWENTION. CODE | SET.CODE
1. MONTH ENTERPRISE
2 FOL-MONTH ENTERPRISE
Navigation:
‘Setup and Maintenance > Search for Manage Asset Books > Search for the book > Scroll down to the bottom and check the
reference data set on the PRORATE CONVENTIONS area
Solution:
Need to either go into the Manage Asset Books form and change the Reference Data Set setting for the PRORATE
CONVENTIONS parameter to match that of the ones in the spreadsheet
OR
Need to setup new Prorate Conventions based on the Reference Data Set outlined in the Manage Asset Books form
4) Prorate Conventions Not Valid
Returns the prorate conventions that have been entered in the spreadsheet that do not match any prorate conventions in the
FA_CONVENTION_TYPES table.
You will need to replace the with the name of your book.
select ai!
Where mas-book type code = '") mas
where (nas.prorace convention
ot.
ntion_typ.
If rows are returned, need to update the records in the spreadsheet to have valid conventions.
5) Category Combinations Not Valid
The category combinations entered in the spreadsheet do not match any combinations in the FA_CATEGORIES_B table. This
could be due to trailing spaces, spaces in between words etc.
You will need to replace the with the name of your book.
& mas.catego
3 mrent2,
cegory_segnent3,
ategory segment,
y_segne:
mas catego:
hitpssupport oracle, comlepmes/aces/DocumentDisplay?_adft-sale=172u2wmz4k. 48
492119923, 447 PM Document 2285442.1
mas category.
mas.category_segnent7
fron ( select mad.category_segnanti,
mad.category segment2,
mad.category segment3,
mad.category_segment4,
nad.category segments,
mad.category_segnenté,
mad.category_segnent7
from fa masa additions mad
wnere bock type code - ‘") nas
Where nor exises
(select 1
from fa_cateyories_b cat
where nVi(cat.segnantl, '~2 avi (mas.category_segment1,
and avi(cat.seguent2, '-Z-") = nvi(mas.category_segrent2, '~Z-"}
and avi(cat.segnent3, '-Z-") = avi (mas-category_segrent3, '~2-")
and nvl(cat.segnentd, '-Z-') = nvi(mas-category_segrenta, '=2-')
fand avi (cat .segnent5, '-Z-") = nvi(mas-category_segrentS, '=2-')
and avi {eat segnent6, '=Z-")
and avl{eat segnent?, '-2-")
avl{nas.category_segnenté, '-Z-")
avi {mas category segrent?, '=2-"))7
[FTES ET CATES SSE] CATES SME] CATEGORY MENT] CATES SEMEN | CTEGORY SEGMENT | CATEEORY SEMEN
2 COMPUTER re vat rtd ‘own ‘ou ala
2 conBUTE re nu ust own oun oun
What to look for?
‘Take the results if any are returned, and for each segment enter them in the following script:
select * from fa_categories_b wnere segment! - ‘segrenti’ and segment? - ‘segment2" and segment3
"segrent3"; - add as many sagnents as you need,
‘The issue may be with spaces somewhere in the words or spelling mistakes,
6) Location Combinations Not Valid
‘The location combinations entered in the spreadsheet do not match any combinations in the FA_LOCATIONS table, This could
bbe due to trailing spaces, spaces in between words etc,
select distinct mas, location segnentl,
mas. ‘on_segment2,
mas jon_segnenta,
mas. on_segments,
nas. location segmenté,
nas ment?
from ( select mad. ocation_segnenti,
mad.location_segment2,
mad, on_segment3,
mad on_segment4,
‘mad. location segments,
nad. location segnenté,
mad. location segment?
fron fa massadd_distributions mad) mas
where not exiets
(select 1
from fa locations Loc
where nvi(loc.segnentt, '-Z-") = avi tmas.location segment, '-2-")
and nvl(lec.segnent2, '-Z-") = nvi{mas-location_sagrent2, '-2-")
and avi (lec. segnent3, avi (nas location segnent3, '-Z-")
and avi (lec. segment4, avi(nas.location_segrent4, '-Z-")
and avi (lec. segnent5, avi (mas.location segrent5, '-Z-")
and avi (loc. segment6, avi (mas location segrenté, '-Z-')
and avi (lec. segment?, avi (mas location segnent?, '-2-"))7
hnps:ifsuppor.oracte.comepmos/iaces/DacumentDisplay?_ad.crt-stale=172u2wmatk_ABit2119923, 447 PM Document 2285442.1
Locirion Severs | cima sca @ LOCATION sean |) LocaTCn Sec |? LocATON_SEGVENTS |: Lccarion sesNEN |) LoEsTION eh
+ un ‘euth rat maid (oat ira eu)
Pus Ww New owe (out iow eu
Sus a losancas 1 (oat rw eu
What to look for?
Take the results if any are returned, and for each segment enter them in the following script:
select * from fa_locations where segment ~ 'segmenti' and segnent2 ~ ‘segnent2' and segments ~
segrent3"; ~ add as many sognents as you need.
The issue may be with spaces somewhere in the words or spelling mistakes.
7) Asset Key Combinations Not Valid
The asset key combinations entered in the spreadsheet do not match any combinations in the FA_ASSET_KEYWORDS table.
This could be due to trailing spaces, spaces in between words etc.
You will need to replace the with the name of your book
select distinct mas.asse
key_segrent2,
key segment3,
_key segment,
mas. key_segnent4,
mas key_segnant5,
mae key segments,
mas key seqnent?,
nas. key_segnent®,
as .asset_key segnent9,
mas.asset_key_segnenti0
from ( select mad.aseet_key_segmentl,
mad.asset_key_segnent2,
mad.asset_kay_segnant3,
mad.asset key segnentéy
mad. key_segnent5,
nad.asset_key_segnent6,
nad.asset_key_segnent?,
mad.asset_key_segnentB,
mad.asse_key_segnent9,
mad.asset_key_segnentiO
from fa masa additions mad
Where book type code = "") nas
where not exists
(select 1
from fa_assot_keywords key
where nvi(key.segmentl, "
and avi (kay.segment2,
and av! (key.seguent3,
and avl (key. segment4,
and avl (key. segnent5,
and avi (key. segment6,
= nvi(nas.asset_key_segnentl
nvi(mas.asset_key segnent2, '~Z-")
avi {mas asset key segments, '=Z-")
vl mas -asset_key_segnent4,
avl (mas .agset_key_segment5,
avi (mas asset key_segment
and avi (key. segment7, nyl(naevasset_key_seqment?,
and avi (key.segmentB, avi (nas .asset_key_seqnent®,
and avi (kay-segment9, '~ avi (mae .asaet_key_seqnent9,
‘and avi (key.segnenti0, '=2-') = nvl(mag.asset_key segmentl0, '-2-"))7
What to look for?
‘Take the results if any are returned, and for each segment enter them in the following script:
select * from {a_asset_keywords where segmenti = 'segnentl" and segment? = ‘segnent2' and segrent3 =
hnps:ifsuppor.oracte.comepmos/iaces/DacumentDisplay?_ad.ctt-stale=172u2wmatk_ABit
8442.1 92119923, 447 PM Document 2285442.1
segrent3"; - add as many segments as you need.
The issue may be with spaces somewhere in the words or spelling mistakes,
8) Depreciation Expense Accounts Not Valid
‘The depreciation expense account combinations entered in the spreadsheet do not match any combinations in the
GL_CODE_COMBINATIONS table.
select distinct mas.deprn_expense segmentt,
nas.depen_expense_segment?,
nas.deprn_expense_segment3,
nas.deprn_expense_segnent4,
mas.deprn_expensa_segnentS,
mas.deprn_expensa_segnenté,
mas.deprn_expense_segment?,
as deorn expense segnentB,
nas.deprn_expense_segment9,
nas.deprn_expense_segmenti0,
nas.deprn_expense_segmentil,
mas.deprn_expensa_segnenti2,
mas.deprn_expensa_segnenti3,
mas.deprn expense segmentify
mas depen expense segment i5,
nas .depen_expense_segmenti6,
nas.deprn_expense_segmenti7,
nas.deprn_expense_segmenti8,
mas.deprn_expensa_segnenti9,
mas.deprn_expensa_segnent20,
mas deorn_expense_segment21,
nas deorn expense segnent22,
nas.deprn_expense_segment23,
nas.deprn_expense_segment2&,
nas.deprn_expense_segnent25,
nas.deprn_expensa_segnent26,
mas.deprn_expensa_segnent27,
mas.deprn expense segment 28,
mas deorn expense segnent29,
nas .depen_expense segment 30
from ( select mad.deprn_expense_segnentl,
nad.deprn_expensa_segment?,
mad. deprn_expensa_segnent3,
mad.deprn_expensa_segnent4,
mad.deprn expense segments,
mad.deprn expenses
nad.deprn_expense_segment?,
nad.deprn_expense_segment8,
mad.deprn_expense_segment3,
mad.deprn_expensa_segnenti0,
mad.deprn_expensa_segnentil,
mad. deprn expense segmenti2,
ad.deoen expense segment 3,
nad.depen_expense_segmentit,
nad.deprn_expense_segmenti5,
nad.deprr_expense_segnenti6,
mad.deprn_expensa_segnenti7,
mad.deprn expense segment 8,
mad.desrn expense segment 19,
ad.deprn expense a
nad.deprn_oxpense_
mad. depen expense
mad.deprn_expense_segnent23,
mad.deprn_expensa_segnent2s,
mad. deprn_expensa_segnent25,
mad. deprn expense segment26,
mad.desrn expense segnent27,
nad.depen_expense_segment28,
mad.deprn_expense_segment29,
nad.deprn_expense_segnent 30
hnps:ifsuppor.oracte.comepmos/iaces/DacumentDisplay?_ad.cr-stale=172u2wmatk_ABit2119923, 447 PM Document 2285442.1
from fa_massadd_distributions mad) mas
wnere not exists
(select 1
fron gl_code_conbinations gf
where nvl(gléc.segnentl, '~2-') = aviinas.deprn expense segmenci, '-2-")
and avi (glee, Sez") = nvl(mas.depen expense segnent2, '-Z-")
and avl {glee ta20") = nvi (ras.depen: Naty
and avi (glee to!) = nvi(mas.depen expense _segnentd, '=2-")
and avi (glec.segnents, '-2-') = nvi(mas.deprn_expense segments, '-2-")
and avi (glec.sagrents, '-2-") — evi (mas.depra_expense_sagment6, '-2-")
and nvl(glec.segnent 7, = nviinas depen expense segment, '-2-')
and nvl{glec.segnent®, = nvlinas.deprn_exsense_segnent®, '-Z-")
fand nvl (glee. segment9, = nvlinas.depzn expense segment 9, '-Z-')
and nvl (glee. segrent10, avi (nas deprh_expense_segnent 19,
and avl (glce.segrentit, avi (nas .deprn_expense_segmentil,
and avi (glee. segnenti2, = nvi (nas.deprn_expense_segnent12,
and avi (glcc.segnent]3, avi (mas .deprn_expense_segnent3,
and nvl (glee. segnent 14, = nvi (nas-deprn_expense_segnent14,
fand avi (glce.segrent15, = nvi (as.depen expense segrent15,
and avi (glee .segrenti6, avi (nas-depen
and avl {glee ea, nv (nas.depen
and avi (glce.segrenti8, avi (nas.deprn_expense_segrent18,
and avi (glec.segrent13, avi (mas deprn_expense_segnent9,
and nvl (glee. segnent20, = nvl (nas.deprn_expense_segnent?0,
and nvl(glec.segnent21, = nvl(mas-deprn_expense_segnent?1, '
and nvl(glec.segnent22, = nvi (nas.deprn_expense_segnent22, ‘
and nvl{glee.segnent23, = avi (nas.deprn_expense_segnent23, ‘
and avl (glee.segrent2¢, avl (nas deprn_expense_segment 24,
and avl (glee. segrent25, = nvi (nas.depen_expense_segnent25,
and avi (glee. segnent26, avi (mas.deprn_expense_segnent 25,
and avi (glec.segnent27, avi (mas deprn_expense_segnent27,
and nvl (glee. seanent26, = nvi(nas-deprn_expense_segrent?8, '
and avi (glee.segrent29, = nvi(nas.depen expense segnent29, '
and avi (glee.segnent30, nvl (nas.deprn_expense_segrent30,
PSE DSN BPE RGN] OCP ENS) UBUD SENT) BARE PET DSW ERE EGR OTOL SENT
sa. i” 0 one oo na tra
What to look for?
Take the results if any are returned, and for each segment enter them in the following script:
select * from gl_code_combinationa where seqnent1 — ‘aeqnenti' and segment? - 'segment2" and seqnent3
= ‘segment3"; ~ Add ad many segments ae you need.
If nothing is returned, they need to enter them and then retest,
9) Valid Asset Key Combinations
‘A popular issue is that there are no combinations defined for the Asset Key Flexfield even if I is not in use. Many processes
require that there is at least 1 active row in for each of the 3 Fixed Asset Key Flexfields.
select *
from fa_asset_keywords;
What to look for?
Should return at least 1 active row for the combination. If not, need to define at least 1 combination even though it may be
used or not.
Navigation:
‘Setup and Maintenance > Search for Manage Asset Keys > Perform a general search,
If nothing is defined, create at least 1 combination. (May need to setup a value set and assign values first)
|nps:'suppor. oracle. comlepmostiaces/DocumentDisplay?_ad.ct-stalo=172u2wmatk_A8id=2285442.1 892119923, 447 PM Document 2285442.1
10) Account Type Check
The following scripts shows the account type, enabled_flag and checks to see if there is any end date on the code combination
that was entered in the FDI spreadsheets
You will need to replace the with the name of your book.
select code_combination_ lay
segnentl,
peqnent5,
segnent6,
enabled flag,
summary flag,
snd date active
Where cade combination id in
Select depzn_expense cod
where book type code = "')) ;
What to look for?
‘The combinations returned are of type 'E’ (expense)
‘There is no end_date_active value
‘The combination is enabled
Itis NOT @ summary account
By correcting any of the results that are returned by the 10 scripts, you should be able to POST the items successfully.
NOTE:2231694.1 - "Retrieving a row from the FA_CATEGORIES table for the category ID {CATEGORY} failed" Error When
Trying to Post Via ADFOT
NOTE:1437735.1 « LoV For Prorate Convention Is Empty In the Manage Asset Category Page
‘ORA-01422 ERR IN PREPARE TRANSACTIONS IF INVi# ENTERED IN SPREADSHEET NOT UNIQUE
‘Values For ‘Life In Years/Month' From ADFDI Spreadsheet Are Not Uploading And Instead Setting Them To
Category Default Values
‘BUG:25456914 - DF: NEED TO POPULATE INV#, SUPPLIER# THAT CAN'T BE LOADED VIA ADFDI
NOTE:2229859.1 + Prepare All Opens Spreadsheet with Expense Account And Location Fields Now Blank When They were
Initially Entered
BUG:25457275 - R11_ORA-01422 ERR IN PREPARE TRANSACTIONS IF INV# ENTERED IN SPREADSHEET NOT UN
NOTE:2227791 1 - Past Mass Addition Fails During Prepare Assets Transactions Data: ORA-01422: exact fetch returns more
than requested number of rows
NOTE:2065182.1 - Posting Additions via ADFDI gets "Retrieving a row from the FA_CATEGORIES table for the category ID
{CATEGORY faile
Didnt find what you are looking for?
hitps:/suppor oracle. comlepmosfaces/DocumentDisplay?_adl c-sale=172u2wmz4k_A8id=2285442.1 99