Delete Reconciliation fails when a Composite Key is used

Hi Guys ,
Problem Statement :-
I am facing problem in performing delete reconciliation when a composite key is used.It fails whenever we have more than one attribute as key
in reconciliation field mappings.
I am using prepareDeleteReconData() ..etc Api's to perform delete reconciliation. I am not using CreateDeleteReconciliationEvent() as i dont know which users are deleted.
UseCase
For eg . Consider Oracle DataBase UM connector , where you have composite key defined as (UserID and ITResource), it fails to generate a delete reconciliation event.
Have anybody faced this ?? Any workarounds ?
Thanks
Surendra Singh

Hey Surendra,
This is what you can do to get rid of this problem. I kow you cannot use the 'createDeleetReconciliationEvent' API, but just to let you know that this works absolutely fine. Now The approach which you might be using has the following flow-
- provideDeletionDetectionData()
- getMissingAccounts()
- deleteDetectedAccounts()
Now you must be aware that getMissingAccounts() returns a ResultSet for all the instances which needs to be revoked in OIM. If you see the contents of this ResultSet, here is what it contains (4 columns):
Objects.Key, Objects.Name, Structure Utility.Table Name, Process Instance.Key
Now what I suggest is do not use the deleteDetectedAccounts API as of now. And Revoke the object instance using API call. Follow the following steps:
1) Just iterate through the ResultSet *(deletedUsers)* obtained from 'getMissingAccounts()' to fetch the value 'Process Instance.Key' and store it in an Array.
2) You must be passing the Object Name as a Task Attribute. Use this attribute to fetch the 'Object Key'. Once you get this value, use the 'getAssociatedUsers' API of objectOperationsIntf to find all the users associated with this object. This API will return a ResultSet. Let's name it as *'AssoUsers'*.
3) Iterate the above ResultSet(AssoUsers) and fetch the *'Process Instance.Key'* column from its rows. Compare this value to the already created Array in step-1. If there is a match then you will know that this resource instance needs to be revoked.
4) Now fetch the following two values from the ResultSet(AssoUsers):
- Users.Key
- Object Instance.Key
5) Once you get the User Key, you will have to find its corresponding resources. Do it by using *'getObjects'* API of userOperationsIntf. This will again return a resultSet *(userObjects)*.
6) Iterate through all the rows and check the value of column *'Objects.Name'*. If this value equals to your resource, then fetch the value of column- Users-Object Instance For User.Key from this row.
7) This will give you the 'Object instnace for User key'.
8) Call the revokeObject API of userOperationsIntf interface.
Below is a sample code snippet for your reference.
          Array DeletedUsers = {Your Deleted User List Array};
          String ObjectName = "Your Object Name as it comes from Task Attribute";
          long ObjectKey = 1; // Fetch it from Object Name above using API
          HashMap dummy = new HashMap();
          tcResultSet AssoUsers = objectOperationsIntf.getAssociatedUsers(ObjectKey, dummy);
          for (int i=0 ; i<AssoUsers.getRowCount() ; i++) {
               AssoUsers.goToRow(i);               
               String piKey = AssoUsers.getStringValue("Process Instance.Key");
               if("Your Array DeletedUsers contains piKey"){
                    long userKey = AssoUsers.getLongValue("Users.Key");
                    long obiKey = AssoUsers.getLongValue("Object Instance.Key");
                    logger.debug("userKey extracted is : " + userKey);
                    logger.debug("obiKey extracted is : " + obiKey);                    
                    tcResultSet userObjects = userOperationsIntf.getObjects(userKey);
                    for(int j=0 ; j<userObjects.getRowCount() ; j++) {
                         userObjects.goToRow(j);
                         if(ObjectName.equalsIgnoreCase(userObjects.getStringValue("Objects.Name"))) {                              
                              long obiuKey = userObjects.getLongValue("Users-Object Instance For User.Key");
                              userOperationsIntf.revokeObject(userKey, obiuKey);
                              logger.debug("Resource has been revoked");
This should work. I know this looks quiet complex but have to do it. Give it a try.
Thanks
Sunny

Similar Messages

  • [svn:osmf:] 14797: Decouple MetadataGroup from synthesizer API, MetadataGroup should only be linked in when a composite element is used.

    Revision: 14797
    Revision: 14797
    Author:   [email protected]
    Date:     2010-03-16 16:34:48 -0700 (Tue, 16 Mar 2010)
    Log Message:
    Decouple MetadataGroup from synthesizer API, MetadataGroup should only be linked in when a composite element is used.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/elements/compositeClasses/CompositeMetadata.as
        osmf/trunk/framework/OSMF/org/osmf/metadata/Metadata.as
        osmf/trunk/framework/OSMF/org/osmf/metadata/MetadataGroup.as
        osmf/trunk/framework/OSMF/org/osmf/metadata/MetadataSynthesizer.as
        osmf/trunk/framework/OSMF/org/osmf/metadata/NullMetadataSynthesizer.as
        osmf/trunk/framework/OSMFTest/org/osmf/elements/compositeClasses/TestCompositeMetadata.as
        osmf/trunk/framework/OSMFTest/org/osmf/metadata/TestMetadataGroup.as

    The Morena 6.0 - Image Acquisition Framework for Java(tm) Platform from http://www.gnome.sk is a package which enables you to connect to your scanner or a camera in a very intuitive way.
    If you just want to see how Morena works with your scanner or camera:
    - java (1.2 or higher for Windows, 1.3 or higher for Mac OS X) has to be installed on your computer
    - a scanner or camera has to be installed on your computer
    - download the trial package from http://www.gnome.sk
    - unzipp it
    - go to the examples directory of the unzipped package
    - in Windows: doubleclick the runExampleShow.bat
    - in MacOS:
        - open the Terminal window
        - change the working directory to the examples
        - run .sh file (type ExampleShow.sh or sh ExampleShow.sh)
    This will pop up the Twain Source Selection user interface. There, all your scanners and cameras which do have a twain driver should be listed. (About 90% of scanners and cameras on the market do have a twain driver for Windows, only a few do have a twain driver for MacOS.) Select one of them. The user interface of the selected scanner (camera) will appear. Confirm the scanning (you can set the scanning parameters first). The scanned image will be displayed in a separate window. To end the application, close that window.
    Running different examples, you can test scanning with hidden UI, saving the scanned image, using ADF, taking images at regular intervals (ExampleCamera) ...
    To see how Morena works in applets, go to the online remote examples http://www.gnome.sk/Twain/remote/www/twain/server/php/remote.html
    If there is any problem, do not hesitate to inquire about it at the technical support, email: [email protected] or join the online forum at www.gnome.sk
    Erika Kupkova

  • How to stop Firefox deleting active downloads when the 'del' key is pressed?

    I tend to remove old downloads from the download manager by pressing the 'del' key. Before the update to the new download manager, Firefox would not delete downloads when the 'del' key was pressed, *if* it was still downloading. This is no longer the case, and you can now accidentally remove downloads that are still downloading if the 'del' key is pressed.
    Is there a way to prevent Firefox from removing active downloads when the 'del' key is pressed?

    '''<Control> J''' to open the download manager. At the upper right is a button;
    '''Clear Downloads.''' This will remove completed downloads only.

  • OIM reconciliation fails when more then one record in trusted source table

    I've create a reconciliation connector against an oracle table with 2 colums:
    user_id
    email
    When I run the connector with only one record exists in the table everything works fine and the user is propogated to the OIM user store. If I add a second record and run the reconciliation again I get:
    ERROR,18 Jun 2010 10:15:58,715,[XELLERATE.JMS],The Reconciliation Event with key -1 does not exist
    ERROR,18 Jun 2010 10:15:58,716,[XELLERATE.JMS],Processing Reconciliation Message with ID -1 failed.
    I'm fairly certain this is something simple.
    Does anyone have any thoughts?

    How about performing the update IN the database using a stored
    procedure?
    By using non-database fields on your form to get the
    information, you can then call the procedure in the database to
    perform the updates. If an error occurs in the procedure you
    rollback, if necessary, and send a message or status back to the
    form. If it succeeds you might wish to commit and then re-
    execute the form's query -- using either the original key values
    or the new key values...
    null

  • File names missing from thumbnails when short cut keys are used

    Across several Adobe products I use (Photoshop CS3 and CS6, Captivate 5 and 5.5) I don't see filenames under thumbnail images when I use short cut keys to open or save documents. This happens in Windows 7 and Windows XP.
    When I use the short cuts the file names don't appear in the document window - all I see is thumbnails with nothing under them.
    If I open or save through the menus I don't have this problem.
    It doesn't always happen, but occurs maybe 75% of the time. Sometime the file names will appear at first, but if I navigate to another location they disappear. This only happens in the thumbnail view in the window. Other views show the file name but as they don't show the thumbnail aren't as useful when working with images.
    Does anyone know what is causing this, and how I get the file names to appear?
    Thanks

    Here's a couple of screenshots of the problem (Photoshop CS4 and Captivate 5.5 running in Windows XP). I have the same problem with Photoshop CS3, and now CS6, running in Windows 7 on another computer. It's not so bad when you can see images, but when you're trying to find folders, or have PSDs that don't thumbnail, then it becomes a nightmare trying to open or save anything.
    Thanks,
    Alistar

  • Database Logon Failed when loading Access mdb that use a system mdw

    I am trying to get my Report Viewer ASP.NET application running 11 R2 SP3 to open a report that uses Access database with a system database file (mdb and mdw file)
    the report runs fine in the designer and it runs fine on the developer test computer
    but the production environment that does not have the full Crystal Designer installed just the runtime engine (but does have the full MSAccess running) cannot load the database
    i keep getting "Database Logon Failed"
    SWIP Reports
    Error Exporting Report
    Report:     Help Desk Reports Over 3 Days
    Server Name:     \\poseidon\IT\Databases\itdept.mdb
    Database Name:     \\poseidon\IT\Databases\itdept.mdb
    User:     GLOBAL\ADMINISTRATOR
    IP:     127.0.0.1
    ============================================================
    | Exception Information
    +----------------------------------------------------------------------
    |  Exception Message:     Database logon failed.
    |  Exception Source:     CrystalDecisions.ReportAppServer.DataSetConversion
    |  Inner Exception:          
    |  Begin Stack Trace:
    |        at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.T_
    |          hrowDotNetException(Exception e)
    |        at CrystalDecisions.ReportSource.EromReportSourceBase.Exp_
    |          ortToStream(ExportRequestContext reqContext)
    |        at CrystalDecisions.CrystalReports.Engine.FormatEngine.Ex_
    |          portToStream(ExportRequestContext reqContext)
    |        at CrystalDecisions.CrystalReports.Engine.ReportDocument._
    |          ExportToStream(ExportOptions options)
    |        at CrystalDecisions.CrystalReports.Engine.ReportDocument._
    |          ExportToHttpResponse(ExportOptions options, HttpRe_
    |          sponse response, Boolean asAttachment, String atta_
    |          chmentName)
    |        at CrystalDecisions.CrystalReports.Engine.ReportDocument._
    |          ExportToHttpResponse(ExportFormatType formatType,_
    |          HttpResponse response, Boolean asAttachment, Strin_
    |          g attachmentName)
    |        at reports.PushReport(ExportFormatType expType, String Co_
    |          ntentType, String Ext, Boolean Popup)
    |        at reports.exportReport(String strExpFmt)
    +----------------------------------------------------------------------
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    does anyone have any advice on why this is failing only on the server but is not failing on the developer or the designer computers.

    public Reports(String RptPath)
                this._ExpOptions.ExportDestinationType = ExportDestinationType.NoDestination;
                this._ExpOptions.ExportFormatType = ExportFormatType.NoFormat;
                this._RptDoc = new ReportDocument();
                this._RptDoc.Load(RptPath, OpenReportMethod.OpenReportByTempCopy);
                login();
    private void login()
                if (!_IsLoggedIn)
                    try
                        String dbName = this._RptDoc.DataSourceConnections[0].ServerName.ToString();
                        for (int i = 0; i < this._RptDoc.DataSourceConnections.Count; i++)
                            this._RptDoc.DataSourceConnections<i>.SetLogon(uid(dbName), pwd(dbName));
                        foreach (ReportDocument Sub in this._RptDoc.Subreports)
                            dbName = Sub.DataSourceConnections[0].ServerName.ToString();
                            for (int i = 0; i < Sub.DataSourceConnections.Count; i++)
                                Sub.DataSourceConnections<i>.SetLogon(uid(dbName), pwd(dbName));
                        ConnectionInfo coninfo = new ConnectionInfo();
                        coninfo.DatabaseName = this._RptDoc.DataSourceConnections[0].DatabaseName;
                        coninfo.ServerName = this._RptDoc.DataSourceConnections[0].ServerName;
                        coninfo.UserID = this._RptDoc.DataSourceConnections[0].UserID;
                        coninfo.Password = this._RptDoc.DataSourceConnections[0].Password;
                        foreach (CrystalDecisions.CrystalReports.Engine.Table crtbl in this._RptDoc.Database.Tables)
                            TableLogOnInfo logoninfo = crtbl.LogOnInfo;
                            logoninfo.ConnectionInfo = coninfo;
                            crtbl.ApplyLogOnInfo(logoninfo);
                        _IsLoggedIn = true;

  • Selecting an object fails when creating a new dashboard using the 'New Dashboard and Widget Wizard'

    Hi,
    I am using SCOM 2012 SP1
    I have recently been experiencing an issue when trying to create a new dashboard using the wizard. I get to the step where you select a group or object to add to the  Scope and Counters section. When I try to search for a particular object such as a
    port or interface it times out and returns an error. The error is shown below:
    Please provide the following information to the support engineer if you have to contact Microsoft Help and Support :
    Microsoft.EnterpriseManagement.Presentation.DataAccess.DataAccessDataNotFoundException: Exception reading objects ---> Microsoft.EnterpriseManagement.Common.UnknownDatabaseException: The query processor ran out of internal resources and could not
    produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer
    Support Services for more information.
       at Microsoft.EnterpriseManagement.Common.Internal.ServiceProxy.HandleFault(String methodName, Message message)
       at Microsoft.EnterpriseManagement.Common.Internal.EntityObjectsServiceProxy.GetManagedEntitiesByManagedEntityTypesAndCriteriaWithInstanceQueryOptions(IList`1 managedEntityTypeIds, IList`1 managedEntityBaseTypeIds, IList`1 criterias, String
    languageCode, InstanceQueryOptions instanceQueryOptions)
       at Microsoft.EnterpriseManagement.InstancesManagement.GetObjectsReaderInternal[T](ICollection`1 criteriaCollection, ObjectQueryOptions queryOptions)
       at Microsoft.EnterpriseManagement.Management.DataProviders.ManagedEntityProvider.GetManagedEntitiesByClass(ICollection`1 baseTypeNames, String criteriaString, List`1 valueDefinitions, List`1 sortValueDefinitions, Int32 maxEntities, String typePropertyName,
    String typeWithIconPropertyName, Boolean propertyCollectionRequested)
       --- End of inner exception stack trace ---
       at Microsoft.EnterpriseManagement.Presentation.DataAccess.DataProviderCommandMethodInvoker.Invoke()
       at Microsoft.EnterpriseManagement.Monitoring.DataProviders.RetryCommandExecutionStrategy.Invoke(IDataProviderCommandMethodInvoker invoker)
       at Microsoft.EnterpriseManagement.Presentation.DataAccess.DataProviderCommandMethod.Invoke(CoreDataGateway gateWay, DataCommand command)
       at Microsoft.EnterpriseManagement.Presentation.DataAccess.CoreDataGateway.ExecuteInternal[TResult](DataCommand command)
       at Microsoft.EnterpriseManagement.Presentation.DataAccess.CoreDataGateway.<ExecuteAsync>b__0[TResult](<>f__AnonymousType0`1 data)
    It appears to be complaining about internal resources, but we have not experienced this issue before and both the management and SQL servers have plenty of resource. The databases are held on a seperate dedicated sql server and I have noticed that when I
    try to search for the object, the sqlservr.exe process immediately consumes 50% CPU while the query is running. As soon as it ends (errors) the sqlservr process drops back to a reasonable number.
    No changes have been made to either the management server or sql server. We were able to create dashboards one day, but then recieved this error the next.
    Has anyone else seen this issue? or can anyone explain what is happening?
    Many thanks

    Hi,
    Asposted earlier,hadt he same problem
    when creating a Dashboard widget type
    State.
    Ones olution I found for this was as follows:
    When creating the State widget,the option
    to specify the criterion I left blank
    and finished the creation of the dashboard.
    With that managed to solve the problem.Of course this
    is not the solution, or the root cause
    of the problem.
    I will examine more about this issue, and sohave
    the ultimate solution and why such behavior,I post
    here.
    thank you
    Wilsterman Fernandes

  • 802.1X Authentication fails when connecting to WPA Enterprise using Leopard

    I'm trying to connect to an office WiFi network with my MacBook Pro which has 10.5.1 installed.
    There are instructions on how to connect using Tiger which are very simple:
    1. Enter network name
    2. Wireless Security: WPA Enterprise
    3. Enter domain credentials for username and password fields
    4. 802.1X Configuration: Automatic
    There are at least two people here using Tiger that can connect using these instructions.
    I've tried the same thing with Leopard and keep getting an error dialog stating "802.1X Authentication has failed."
    I've also tried fiddling with the 802.1X tab under "Advanced" (I know the protocol is PEAP), but no matter what I get the same error.

    Turns out I was not authorized to use the WiFi. IT got me setup and everything works now.

  • BUG: Speed Dials not functioning correctly when Option button is last used

    There is a bug in WebOS where Speed Dials do not work correctly.  Holding down your speed dial favorites button will not place the call. This happens when the option key is used in launcher or card view before attempting speed dial.
    For instance if your last character of a search you did 4 hours ago on your phone contained a series of numbers and you locked the option key to do so, (or even if you accidently hit the option key last and then did not need it) then an attempt to use speed dial "G" will not work, as your Pre/Pixi thinks you are holding down the "6" key and not the "G" key.
    This needs to be remedied (for instance have the option key press clear out or unlocked as soon as the search is performed or cleared off of the phone) because there is no way to tell what state the option key is in before using a speed dial (not that I want to check and fiddle with it anyway).

    The Z and B keys are the * and # keys. That is why they are not in the speed dial list. Hmmm... while it might be a "bug" at this time your the only person having this issue as far as I can tell. Since the issue moved to another phone it could be that  its related to your Palm Profile. I unfortunately cannot replicate this issue but would like to test something. Can you do a Partial erase on your device and create a new Palm profile? This will see if the issue is still on the device.
    If it is not then the issue is within your Palm Profile. If that is the case I can help you from there. Please post back when you tried this step.

  • Renewing public key certificate used for Seeburger AS2

    My general question is when a public key certificate, used for Seeburger AS2 payload decryption and digital signatures, needs to be renewed, how carefully do the certificate renewal steps need to be coordinated for a seamless transition?  More specifically...
    1. Once we import the CSR response from the CA, will the public key currently used by our partner become invalid, or will it continue to work until its expiration date? 
    2. Will our partner be able to validate our signature after the new CSR has been imported, but prior to them applying the new public key certificate in their system? 
    3. Or can we renew the certificate, import the CSR request, provide our partner with the renewed certificate, and let them apply the certificate at their own volition, provided they do it prior to the original certificate expiration?

    Hi Kurt
    In my experience, the renewal/replacement of AS2 certificates for encryption/decryption & signing/authentication requires coordinated effort on both sides.
    This is because AS2 uses asymmetrical encryption, so both parties need to use the same pair of certificates at the same time, i.e. you encrypt on your private key, and partner decrypt on the public key matching your private key. If the keys used do not belong to the same pair, then decryption will not work.
    I'm not sure what AS2 software your partner uses and if it has the feature of automatic rollover of certificate, but PI/Seeburger does not. The approach in PI/Seeburger can either be one of the following:-
    i) import new cert replacing original cert of the same name
    ii) import new cert into new name, manually update sender/receiver agreements
    Due to the manual nature of the tasks, normally it requires coordinated effort during a cutover window.
    Rgds
    Eng Swee

  • Downloaded music apps o.k.  Says login failed when I put in user and password. No trouble when getting any other apps.

    Downloaded music apps o.k.  Says login failed when I put in user and password. No trouble when getting any other apps.

    Sounds like you may have deleted something you shouldn't have. Boot to an OS X DVD or a bootable backup, and using Disk Utility, do a repair disk, and while there repair permissions. Disconnect any peripherals, and reboot. If you get the same startup behavior, do a safe boot, by holding the shift key down when booting. If that works, try a normal boot. If neither step helps, you may need to relaod your operating system.

  • Installation of IPC AP 7.0 Jar is getting Failed when uploading in CRM

    Hello Experts,
    we did some changes in the previosly uploded version of IPC AP 7.0  customer user exit Jar file in eclipse.
    While uploading the new modified jar through transaction /SAPCND/UE_DEV in CRM we are getting error :" installation of module <Jar file name > has failed ".
    when we checked the logs in SM 53 we seen the below mentioned error:
    Message: Exception of type com.sap.sql.log.OpenSQLException caught: Exception of type com.sap.sql.sqlparser.CommonSQLParserException: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE ^ (reason: Modification of ABAP tables is not permit ted)" is not supported
    caught: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE ^ (reason: Modification of ABAP tables is not permitted)" is not supported
    --> com.sap.sql.log.OpenSQLException: Exception of type com.sap.sql.sqlparser.CommonSQLParserException: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE '^' (reason: Modification of ABAP tables is n" is not suppor ted
    caught: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE '^' (reason: Modification of ABAP tables is not permitted)" is not supported
    at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Object;)Lcom/sap/sql/log/OpenSQLException;(Syslog.java:85)
    at 
    if  required i can post the complete stack trace.
    any inputs/suggestions are most welcome.
    Thanks & regards,
    Siddharth

    Hi Mark,
    Yesterday after Posting the thread we found the same Note ,Issue occured because of  JAVA write access was not enabled on the table ,After enabling it as mentioned in SAP Note, Jar file get successfully uploaded.
    Thanks for your Help also.
    Regards,
    Siddharth

  • Logon of user in client failed when starting a step

    Hi All,
    I have a question. (Might be simple to many).
    <b>Logon of user in client failed when starting a step.</b>
    Some of my scheduled jobs are getting cancelled due to the above error. It has been noted that the user corresponding to that job has been locked.
    Can anybody suggest how to change the user of a Background Job (without deleting and re-creating the same).
    Thanks and Regards
    Devanand

    Hi
    You cannot change the owner of the job once it is in released status.
    Better, create the job with same varient by an existing user and delete the cancelled job.
    regards,
    Vinodh.

  • Why do I get connection failed when logging in on app store on wireless, but Wired LAN works fine?

    I've been having the same issue as many other people. On OSX Lion with latest updates as of 3/20/2012. Tried deleting .plist files, checking keychain access and even reset keychain. I still get the error of Connection Failed when trying to download updates or a new app from the app store.
    I also can't connect to the iTunes "Account" area. It produces an error that the request failed (-1200)
    I finally decided to try a wired connection instead of my wireless. Now it works great! So I removed my wireless network and re-added it. Back to square one. Work around for now is fine, but I should be able to use this over wireless, too!
    I just now tested connecting to a different wireless network (EVO Hotspot) and it worked fine. So it's something specific to my office wireless network. Nothing changed on our firewall (I'm the administrator). It just stopped working.
    Anthony

    Hi ...
    Perhaps there's something that you haven't tried here >  Troubleshooting Wi-Fi issues in OS X Lion

  • I have accidentally deleted my IMAP password from my key chain, therefore i can no longer access my emails using mail.  I can access my email through my Gmail account no problem, so how do i fix this as i cannot remember my IMAP password.

    I have accidentally deleted my IMAP password from my key chain, as a result i cannot access my google email using the Mac Mail.  I cannot remember what the password was for IMAP, so can anyone help to resolve this.  i can access my mail by going directly to Google Mail.
    Regards JKG1135

    The password for use in the Mail application would be the same password you use when accessing Gmail by using an internet browser. The exception to that would be if you have 2-step verification enabled for Gmail. If that is the case then you would need to use an "application-specific password." If you are using 2-step, you can revoke the previous application-specific password and get a new one as described in https://support.google.com/mail/answer/1173270?hl=en

Maybe you are looking for